Hi,
     I am using libc6-dbg libraries to debug into library source code. The
library path is /usr/lib/debug.
     glibc-source code path is /usr/src/debug/glibc-2.7. I am using gdb to
debug a small application and put a break point on pthread_create function.
I tried to step into pthread_create function but I get following error

Starting program:
/home/one/Desktop/test/pthread_debug/pthreads_debug_example/a.out
[Thread debugging using libthread_db enabled]
Start Debugging
[New Thread 0x80ce830 (LWP 2432)]
[Switching to Thread 0x80ce830 (LWP 2432)]

Breakpoint 1, __pthread_create_2_1 (newthread=0xbfffddf0, attr=0x0,
    start_routine=0x80482dd <print_message_function>, arg=0x80ab3b9)
    at pthread_create.c:429
429     pthread_create.c: No such file or directory.
        in pthread_create.c


It is clear from this error that pthread_create.c file cannot be found but
it is located here /usr/src/debug/glibc-2.7. My guess for some reason
libc6-dbg library is unable to find glibc source code.

I installed libc6-dbg  using package manager. I downloaded glibc-source and
extracted it to /usr/src/debug/glibc-2.7. Is there anything that I have to
do to set up so that libc6-dbg recognizes glibc source code?

Thanks
Shravan

Reply via email to