Mail Archives: djgpp-workers/2002/05/16/16:30:46
> 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 -