home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7912 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  1.1 KB

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