bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdb6.0 and statically linked threaded programs


From: Todd . Kneisel
Subject: gdb6.0 and statically linked threaded programs
Date: Fri, 17 Oct 2003 17:37:10 -0700

I have built gdb6.0 and am having trouble using it to debug a
threaded program that is statically linked with the linuxthreads
pthread library. Gdb does not detect the creation of threads,
it traps signal 32 that the pthread library uses to restart
threads, and gets a SIGINT instead of stopping at a breakpoint
in a thread.

If I dynamically link my program, everything works fine. For
a number of reasons, I need to link my program statically.

I've begun looking at the gdb code and found the following
text in a comment in the thread_db_mourn_inferior function:

   At present,
   debugging a statically-linked threaded program is broken, but
   the check is added below in the event that it is fixed in the
   future.

Is anyone working on fixing this?  Or can anyone provide more
details about how or why it's broken?

Thanks,
Todd Kneisel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]