Debugging symbols?

Jack Howarth howarth at bromo.med.uc.edu
Thu Dec 24 12:31:05 PST 2009


On Thu, Dec 24, 2009 at 01:16:08AM -0600, Ryan Schmidt wrote:
> 
> On Dec 23, 2009, at 21:35, J Smith wrote:
> 
> > Apologies if I'm missing something terribly obvious, but is there any
> > way to build a port with debugging symbols enabled for debugging in
> > gdb? I've looked around and haven't found an option, but I may be
> > missing something rather obvious...
> 
> I don't think you're missing anything; I don't recall anybody asking for this before so there isn't anything built into MacPorts to accommodate that.
> 
> How would one build a piece of software with debugging symbols? Is it a configure option? an environment variable? Perhaps it varies by software? Which specific ports were you wanting this for? Some individual ports do offer debugging options, e.g. php5 has a debug variant.
> 
> 
> 
> 
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Ryan,
   Darwin stores its debug symbols in the object files...

http://developer.apple.com/mac/library/documentation/DeveloperTools/gdb/gdb/gdb_5.html#SEC19

On fink, I usually work around this by using 'fink -k rebuild' to retain the populated
build directory for the code of the program being debugged. I suspect the same approach
would work if the port was invoked to retain the build directory as well.
                   Jack


More information about the macports-dev mailing list