This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compile gdb with libc debug symbols


Hello,


I have a newbie question, I googled it but haven't found the answer.
I'm compiling gdb 7.0.1 on a Ubuntu 9.10 machine with libc6-dbg
package installed. The resulting binary does not see the libc debug
symbols, even though the binary packaged with ubuntu does so. I'm
using the following configure parameters:

./configure --build='x86_64-linux-gnu' --prefix="/home/sun/esd-work/dist/gdb"

Can you please indicate how to add the libc debug symbols support? The
libc with debug symbols is located in
/usr/lib/debug/lib/libc-2.10.1.so. I have attached an example run for
a double-free crash: notice the ubuntu packaged gdb indicates the
source file, line and parameters for each frame in the backtrace while
the compiled version only shows "from /lib/libc.so.6".

Thank you.

-- 
Vlad Ureche

Attachment: gdb-run.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]