Article View: comp.sys.next.programmer
Article #1966Symbol tables of dynamically loaded objects in gdb
From: Bing-Qing Chen
Date: Fri, 25 Dec 1992 02:42
Date: Fri, 25 Dec 1992 02:42
14 lines
1130 bytes
1130 bytes
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
Technical Details
Message-ID:
<1hdse7INNslm@gap.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!bchenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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