home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 7979 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.9 KB

  1. Path: sparky!uunet!haven.umd.edu!wam.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
  2. From: louie@sayshell.umd.edu (Louis A. Mamakos)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Symbol tables of dynamically loaded objects in gdb
  5. Date: 4 Jan 1993 23:31:19 GMT
  6. Organization: University of Maryland, College Park
  7. Lines: 27
  8. Message-ID: <1iahc7INNqq8@ni.umd.edu>
  9. References: <1hdse7INNslm@gap.caltech.edu> <6148@rosie.NeXT.COM>
  10. NNTP-Posting-Host: sayshell.umd.edu
  11.  
  12. In article <6148@rosie.NeXT.COM> dave_moore@next.com (Dave Moore) writes:
  13.  
  14. >If you're running on 3.0 you shouldn't have to do anything to get the  
  15. >symbols loaded.  Gdb just notices that code was loaded, and loads up the  
  16. >symbols.  In fact you can use the future-break (fb) command to set  
  17. >breakpoints in the code before you load it.  Any breakpoints in it are  
  18. >forgotten about when the code is unloaded or the program is restarted, but  
  19. >they come back when the code is loaded again.  It just ought to work.  
  20.  
  21. I've been using gdb and it really does load the symbols as modules are
  22. dynamically loaded.  I didn't know about the fb command, though, this
  23. sounds way-cool and will be a real big help.
  24.  
  25. >As for the above commands add-file is the one to use.  This can force  
  26. >symbols in.  If you supply a "debug-file" argument to rld_load or  
  27. >objc_loadModules (there is no way to do this if you're using bundles),  
  28. >this is the file to give to add-file.
  29.  
  30. I've been using NXBundle quite a bit lately on a project that I've
  31. been working on, and its been working pretty well.  However, I'm
  32. thinking of dropping back to using objc_loadModules since I can get it
  33. to create the debug file.  It would be *real* nice if there was a way
  34. to have the NXBundle class make an object file as it loads modules.
  35. While running a program under gdb works most of the time, if you get a
  36. core dump, you're pretty much hosed trying to debug it
  37.  
  38. louie
  39.