This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/17381] Access TLS address space of inferior's threads from gdb


https://sourceware.org/bugzilla/show_bug.cgi?id=17381

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos at redhat dot com

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
I've been talking to some gdb folk and I think the best solution is one more
function added to libthread_db. While I don't think libthread_db is a good
solution for cross-debugging and more complex scenarios that we want to support
it *is* a good place to document via APIs all of the niggling things we need to
share between glibc<->gdb. So rather than have gdb hard code knowledge about
glibc, it should go in libthread_db, and eventually into some kind of
python/dwarf magic that is a data descriptivie way to express the same things
the API expresses.

To this end I'm going to add a new libthread_db function to get the module id
out of the link map and that should be enough for gdb to be able to write out
code to access TLS in the inferior.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]