GDB support for thread-local storage

Daniel Jacobowitz drow@mvista.com
Tue Jun 25 08:56:00 GMT 2002


On Tue, Jun 25, 2002 at 04:53:37PM +0100, James Cownie wrote:
> > > So, ask the thread library folks to provide a suitable versioning
> > > symbol. As you rightly point out trying to guess the version is
> > > unlikely to succeed !
> > 
> > Anything that requires changes to the library isn't really viable; too
> > many libraries already exist.
> 
> But that seems like an argument for packing up and going for a beer
> which could be applied to _any_ improvement in anything associated
> with libc :-)
> 
> The exact same argument could have been employed against introducing
> libthread_db itself in the first place !
> 
> Surely one has to move forwards.
> 
> Adding a suitable version symbol can only help, it can't break
> anything. If it's there the debugger can use it. If not you can keep
> doing what you already do, and it seems you really need it even for
> the normal native cases.

You'll never get them to document interface changes in pthreads'
internal data structures.  You're welcome to try if you like pain more
than I do.  The only layer the glibc folks support for accessing this
data is thread_db.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list