|
|
Problem of debugging into glibc functions?
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
|
|
0
|
|
|
|
Reply
|
zhushenli (384)
|
1/7/2010 2:05:39 PM |
|
On 2010-01-07, Davy <zhushenli@gmail.com> wrote:
> 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?
Not exactly addressing your question, but does setting a
breakpoint in your supplied function allow you to debug
things?
|
|
0
|
|
|
|
Reply
|
Edgardo
|
1/7/2010 2:35:48 PM
|
|
On 07/01/10 14:05, Davy wrote:
> 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?
You should try installing a debug symbol package for the library.
https://wiki.ubuntu.com/DebuggingProgramCrash
--
Max
|
|
0
|
|
|
|
Reply
|
Maxim
|
1/10/2010 5:53:43 PM
|
|
|
2 Replies
660 Views
(page loaded in 0.048 seconds)
|
|
|
|
|
|
|
|
|