🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2178

Re: Symbol tables of dynamically loaded objects in gdb

#2178
From: Louis A. Mamakos
Date: Mon, 04 Jan 1993 23:31
27 lines
1934 bytes
In article <6148@rosie.NeXT.COM> dave_moore@next.com (Dave Moore) writes:

>If you're running on 3.0 you shouldn't have to do anything to get the  
>symbols loaded.  Gdb just notices that code was loaded, and loads up the  
>symbols.  In fact you can use the future-break (fb) command to set  
>breakpoints in the code before you load it.  Any breakpoints in it are  
>forgotten about when the code is unloaded or the program is restarted, but  
>they come back when the code is loaded again.  It just ought to work.  

I've been using gdb and it really does load the symbols as modules are
dynamically loaded.  I didn't know about the fb command, though, this
sounds way-cool and will be a real big help.

>As for the above commands add-file is the one to use.  This can force  
>symbols in.  If you supply a "debug-file" argument to rld_load or  
>objc_loadModules (there is no way to do this if you're using bundles),  
>this is the file to give to add-file.

I've been using NXBundle quite a bit lately on a project that I've
been working on, and its been working pretty well.  However, I'm
thinking of dropping back to using objc_loadModules since I can get it
to create the debug file.  It would be *real* nice if there was a way
to have the NXBundle class make an object file as it loads modules.
While running a program under gdb works most of the time, if you get a
core dump, you're pretty much hosed trying to debug it

louie
Technical Details
Message-ID: <1iahc7INNqq8@ni.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!wam.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
References: <1hdse7INNslm@gap.caltech.edu> <6148@rosie.NeXT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!wam.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Newsgroups: comp.sys.next.programmer
Subject: Re: Symbol tables of dynamically loaded objects in gdb
Date: 4 Jan 1993 23:31:19 GMT
Organization: University of Maryland, College Park
Lines: 27
Message-ID: <1iahc7INNqq8@ni.umd.edu>
References: <1hdse7INNslm@gap.caltech.edu> <6148@rosie.NeXT.COM>
NNTP-Posting-Host: sayshell.umd.edu