Mail Archives: djgpp/1999/04/09/10:18:42
Jared Stevens" <stevja AT caldera DOT com> wrote:
> How the heck do I use GDB?
Better choice: with RHIDE.
> If I run a program and it crashes, how do I tell
> which line of code the crash occured on by using the crash info that DJGPP
> supplies you with?
1) Command line:
redirect -e error.txt program.exe
symify -i error.txt -o error.rep program.exe
You'll get the trace back error.rep.
2) GDB:
gdb program.exe
Run the program (I guess that's the run command, type help or h to get help)
When it crashes use the backtrace (or something like it) command.
3) RHIDE:
Compile your program and run it with Ctrl+F9
When it crashes RHIDE will show you the stack trace in a window and you can
jump to the code selecting in this window.
I use (3), in some strange cases (2) [under Linux] and (1) only when the
crash happened in another machine (not mine) and the user sends me the
information (my editor saves it to disk).
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://welcome.to/SetSoft
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(5411) 4759 0013
- Raw text -