Mail Archives: djgpp/2004/07/23/07:09:35
> From: sterten AT aol DOT com (Sterten)
> Newsgroups: comp.os.msdos.djgpp
> Date: 23 Jul 2004 10:15:22 GMT
>
> sorry, I saw no point in running it through the debugger
> since the error occurred at the end of the program
> after millions of steps.
It doesn't matter how many gazillions of steps it took; running it
under a debugger does not mean you need to single-step it. Simply run
the program under a debugger without setting any breakpoints, and the
debugger will keep out of the program's way until such time as it
crashes. Then, and only then, will the debugger kick in, take
control, and let you do things such as disassemblying near the point
of the crash, which will show us what code crashed and why.
This works because the debuggers catches fatal signals of the program
it runs, and a crash is a fatal signal (SIGSEGV in your case).
- Raw text -