Thread View: de.comp.sys.st
2 messages
2 total messages
Started by Hans Streibel
Wed, 05 Aug 1992 08:50
Hilfe: Symbol-Datei fuer GDB
Author: Hans Streibel
Date: Wed, 05 Aug 1992 08:50
Date: Wed, 05 Aug 1992 08:50
12 lines
765 bytes
765 bytes
Hallo, alle zusammen, Wahrscheinlich ist dies eine ganz dumme Frage, aber ich habe Schwierig- keiten, GDB mit den gewuenschten Dateien zu versorgen. Die Doku sagt, dass man gdb in der Form "gdb -e xyz.prg -s symbol-file" aufrufen soll. Ok, xyz.prg kompiliere ich mit der "-g" Option aber wie erzeuge ich die Symbol-Datei? Hans streibel@fernuni-hagen.de
Re: Hilfe: Symbol-Datei fuer GDB
Author: Martin Gergeleit
Date: Thu, 06 Aug 1992 06:09
Date: Thu, 06 Aug 1992 06:09
30 lines
1817 bytes
1817 bytes
In <8203@fuhainf.fernuni-hagen.de> streibel@fernuni-hagen.de (Hans Streibel) writes:
> ... ich habe Schwierig-
>keiten, GDB mit den gewuenschten Dateien zu versorgen. Die Doku sagt,
>dass man gdb in der Form "gdb -e xyz.prg -s symbol-file" aufrufen soll.
Die Dokumentation bei den Sourcen sagt:
to debug a program called foo, consisting of foo.c and bar.c do
gcc [-O] -g -c foo.c bar.c (-O optional)
gcc -o foo foo.o bar.o (get normal TOS executable)
sym-ld -o foo.sym e:\lib\crt0.o foo.o bar.o -lgnu (make symbol file)
(use the appro. full path to your crt0.o
note: sym-ld -r is not required. -l works).
gdb -e foo -s foo.sym (file up gdb with exec-file == foo and
symbol-file == foo.sym)
(gdb) [set-args args1 arg2 ....]
(gdb) r (before doing anything, you have to run,
and it will break immediately with a
non-sensical message)
(gdb) b main (now start issuing normal gdb commands)
...
(gdb) c finally a continue to actually start the prog
.... and so on
(gdb) q
Gruss,
Martin Gergeleit
<mfg@gmdzi.gmd.de>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads