Bug 84348 - Support linuxthreads_db?
Summary: Support linuxthreads_db?
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 2.1.1
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-02 09:19 UTC by Howard Chu
Modified: 2012-05-26 14:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Howard Chu 2004-07-02 09:19:19 UTC
It would be nice if valgrind's thread library supported the debugger interface
so that when gdb is attached, you can get backtraces on all the client threads.

What would also be useful is a way to break into gdb at any arbitrary time, to
examine the client state. I added a User Request for this in my copy of valgrind
2.0.0 but the only way I could think of triggering it was via a signal handler.
When gdb attaches, the only stack I can see is that of the signal handler's,
which isn't very interesting.

I suppose you could accomplish this by preloading a custom libthread_db on the
gdb invocation, haven't looked into it in great detail.
Comment 1 Philippe Waroquiers 2012-05-26 14:08:24 UTC
gdbserver in Valgrind 3.7.0 provides the needed functionality