Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem of debugging into glibc functions?

5 views
Skip to first unread message

Davy

unread,
Jan 7, 2010, 9:05:39 AM1/7/10
to
Problem of debugging into glibc functions?

Hi all,

I want to debug into glibc functions like nftw() in Ubuntu Linux (nftw
require a function pointer argument and I want to step into this
function).

But after installed libc6.dbg and set environment
LD_LIBRARY_PATH(I have to set it in gdb by "set env LD_LIBRARY_PATH
/usr/lib/debug"), my emacs/gdb still cannot step into the glibc
function.

Shall I compile the glibc by myself, or shall I set other environment
parameters?

Thanks!
Davy

Edgardo Portal

unread,
Jan 7, 2010, 9:35:48 AM1/7/10
to

Not exactly addressing your question, but does setting a
breakpoint in your supplied function allow you to debug
things?

Maxim Yegorushkin

unread,
Jan 10, 2010, 12:53:43 PM1/10/10
to

You should try installing a debug symbol package for the library.
https://wiki.ubuntu.com/DebuggingProgramCrash

--
Max

0 new messages