debugging tip

Joe Maimon jmaimon at ttec.com
Wed Sep 23 02:24:57 CEST 2009



John Morrissey wrote:
> On Tue, Sep 22, 2009 at 01:55:35PM -0400, Joe Maimon wrote:
>> Debian build a freeradius-dbg package.
>>
>> How do I get gdb to use these symbols with the minimum of fuss?
>>
>> I must be missing something basic.
> 
> Set LD_LIBRARY_PATH:
> 
> LD_LIBRARY_PATH=/usr/lib/debug gdb freeradius
> 
> If you're attaching to a running freeradius process, freeradius needs to be
> started with LD_LIBRARY_PATH, too.
> 
> john

Still feeling stupid.

root at jmdeb01:/tmp# LD_LIBRARY_PATH=/usr/lib/debug gdb freeradius
GNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(no debugging symbols found)
(gdb)



More information about the Freeradius-Devel mailing list