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.
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 -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__
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@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)
Joe Maimon <jmaimon@ttec.com> wrote:
Still feeling stupid.
root@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)
No idea why but my git sourced FreeRADIUS debugging package is 'lightweight': ---- garibaldi:/home/ac56# dpkg -L freeradius-dbg /. /usr /usr/share /usr/share/doc /usr/share/doc/freeradius-dbg /usr/share/doc/freeradius-dbg/copyright /usr/share/doc/freeradius-dbg/changelog.Debian.gz /usr/share/doc/freeradius-dbg/changelog.gz ---- Probably because I'm building it with[1]: ---- DEB_BUILD_OPTIONS='nostrip debug noopt' MFLAGS='-DIE_LIBTOOL_DIE' debuild ---- I'm guessing if you drop the 'debug' parameter, it might start working....not really worth bothering I would say. Also, we seem to be running different gdb versions...I'm guessing you are not running Debian 'lenny' :) Cheers [1] after removing libtool/libltdl3-dev from debian/control and the '--with-system-libtool --disable-ltdl-install' from debian/rules -- Alexander Clouter .sigmonster says: Why don't you pair `em up in threes? -Yogi Berra
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
Never mind, it helps to have matching binaries and debug packages. Thanks.
participants (3)
-
Alexander Clouter -
Joe Maimon -
John Morrissey