delorie.com/archives/browse.cgi | search |
Date: | Fri, 21 Sep 2001 19:58:40 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | sandmann AT clio DOT rice DOT edu |
Message-Id: | <4634-Fri21Sep2001195840+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 |
CC: | djgpp-workers AT delorie DOT com |
In-reply-to: | <10109211311.AA18258@clio.rice.edu> (sandmann@clio.rice.edu) |
Subject: | Re: UPX'ed image and debugger note [was Re: gcc-3.01 ...] |
References: | <10109211311 DOT AA18258 AT clio DOT rice DOT edu> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > Date: Fri, 21 Sep 2001 08:11:32 -0500 (CDT) > > > > Is UPX built with DJGPP? If not, what use is it to try to debug it > > with DJGPP debuggers? > > I mean images compressed with UPX. So did I. Sorry for an unclear wording. > > Right, and for a good reason. We could of course avoid doing that if > > UPX is involved, but we need a way to detect this situation. Can you > > suggest how to detect that? > > How about a flag that says if the current CS:IP is < 4096 then allow > reads? Sounds good to me. > > A user of a debugger might also want to turn off null page protection > > if they want to put a watchpoint on it. This might come handy for > > debugging on Windows, where we don't get a SIGSEGV in the debuggee > > when it dereferences a NULL pointer. > > True. But the debuggers internally treat 0 as the flag to disable > a watchpoint, so this would need to be changed. At least in GDB, it's not easy to change that. But you could always work around that by setting a watchpoint at address 1 instead of zero.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |