[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to build debug libraries and use with gdb?



On Sat, Jan 18, 2003 at 09:39:29PM -0000, Adam Kao wrote:
> 
> Could someone explain or point me to an explanantion of how to build a
> library for debugging and use it with gdb?  Most of the libraries are
> now shared .so files, do I need to link them statically to debug them,
> if so how would I do that?  Gdb has add-symbol-file but that requires
> an address which I have no clue about.

For now, you build it with debug information; set LD_LIBRARY_PATH to
include the debug version; and then run the app inside GDB.  It'll pick
up the right copy.

Soon there should be a better way available... really...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: