Mail Archives: djgpp/1997/11/04/09:51:57
On Tue, 04 Nov 97 03:36:41 GMT in comp.os.msdos.djgpp Gautam N. Lad
<gautam AT interlog DOT com> wrote:
: Hi,
: Is there any way to determine where a program is causing a GPF?
: I get all the code like General Protection Fault at eip=(whatever).
: and some other (unknown to me) stuff.
: Could this be used to pinpoint where in a program's source (hopefully a .CPP/.C
: or .HPP/.H) it's happening?
If you compile your source files with the `-g' option, and don't strip
debugging symbols (don't use the `-s' option), you can type `symify
myprog.exe' while the crash dump is still on the screen, replacing
`myprog.exe' with the name of your program.
Incidentally, on this topic, why is it necessary to pass the name of
the executable image? The new stack trace contains the executable's
full path and filename; is this unreliable?
--
Regards,
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -