On Wed, Feb 24, 2010 at 03:17:25PM -0500, John Baldwin wrote: > On Wednesday 24 February 2010 1:17:50 pm Peter Steele wrote: > > >You're going to need a debug version of libc, too. gdb won't be able to > find a backtrace out of a libc function without it. > > > > What's the proper way to build a debug version of libc and the other > libraries? I tried this: > > You can just do this: > > cd /usr/src/lib/libc > make clean > make DEBUG_FLAGS=-g > make install
make install should be done with DEBUG_FLAGS containing -g too, otherwise strip(1) is called on the installed binary.
pgpTclt7JKHiZ.pgp
Description: PGP signature