delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/16/16:30:46

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10205162031.AA19346@clio.rice.edu>
Subject: Re: emacs under w2k
To: eliz AT is DOT elta DOT co DOT il
Date: Thu, 16 May 2002 15:31:50 -0500 (CDT)
Cc: lauras AT softhome DOT net (Laurynas Biveinis), djgpp-workers AT delorie DOT com
In-Reply-To: <6436-Thu16May2002222722+0300-eliz@is.elta.co.il> from "Eli Zaretskii" at May 16, 2002 10:27:23 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
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

> You don't need library sources to debug on the machine instruction
> level.  (Of course, having the sources handy, with comments and stuff,
> is nice.)

And since crt0.s is in assembler, the disassmbly looks amazingly like
the source, with a few addresses instead of symbols.

> > >> X#=0D, CS=01A7 IP=00001254. The NTVDM CPU has encountered an unhandled
> > >> exception
> > 
> > > In the same place, or earlier?
> > 
> > Immediately after launching emacs.
> 
> It would be interesting to know where exactly does that happen, I
> think.

The IP is actually in the range of probable crt0.s - so you could 
disassemble the image to see if the crash point makes sense.  In the
old days I could do that remotely, but since the start address changes
depending on version/binutils, you can't be exactly sure unless you
have the binary.  No guarantee, since we don't know if the CS is 
actually the DJGPP 32-bit one, vs the stub 16-bit one, or an NTVDM
internal one.

With more register values, and disassmbly of all of the above, you
can usually guess :-)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019