Article View: de.comp.sys.st
Article #136Re: Hilfe: Symbol-Datei fuer GDB
From: 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>
Technical Details
Message-ID:
<mfg.713081374@gmd.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!darwin.sura.net!jvnc.net!gmd.de!mfgReferences:
<8203@fuhainf.fernuni-hagen.de>Show Full Headers
Complete Article Headers
Newsgroups: de.comp.sys.st Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!mips!darwin.sura.net!jvnc.net!gmd.de!mfg From: mfg@gmd.de (Martin Gergeleit) Subject: Re: Hilfe: Symbol-Datei fuer GDB Message-ID: <mfg.713081374@gmd.de> Sender: news@gmd.de (USENET News) Nntp-Posting-Host: gmdzi Organization: GMD, Sankt Augustin, Germany References: <8203@fuhainf.fernuni-hagen.de> Date: Thu, 6 Aug 1992 06:09:34 GMT Lines: 30