home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!bchen
- From: bchen@cco.caltech.edu (Bing-Qing Chen)
- Newsgroups: comp.sys.next.programmer
- Subject: Symbol tables of dynamically loaded objects in gdb
- Date: 25 Dec 1992 02:42:15 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 15
- Message-ID: <1hdse7INNslm@gap.caltech.edu>
- NNTP-Posting-Host: punisher.caltech.edu
-
- I was trying to figure out how to add symbol tables of dynamically loaded
- objects to gdb. According to the GDB document, I tried the following
- commands: "load file", "load-file file" and "add-symbol-file file addr".
- The first command returns "You can't do that when your target is `exec'"
- if the program is not running or "You can't do that when your target is
- `child'" when it is running, I wonder when I can use the "load" command?!
- The second command seems to do nothing, while the third command does not
- recognize address argument and it crashes gdb with "Segmentation fault"
- if no address is given. This is really frustrating. Any help would be
- greatly appreciated.
-
- Thanks,
- Bing Chen
- bchen@cco.caltech.edu
-
-