how can I dump out thread informations in gdb

Paul Pluzhnikov ppluzhnikov@google.com
Thu Oct 23 02:30:00 GMT 2008


On Wed, Oct 22, 2008 at 1:13 PM, Bradshaw, James <jbradsha@enterasys.com> wrote:

> And when "info threads" gives the incorrect information, how exactly
> do we address that problem?

OP gave no indication that he gets incorrect information.

> I gather from earlier posts, libthread_db
> on the target must not be stripped in order to correctly view threads

That is incorrect. AFAICT, libthread_db may be stripped
(it must have dynamic symbol table intact; but strip normally
doesn't touch dynamic symbol table anyway).

However, on Linux libpthread.so.0 itself must not be stripped,
or libthread_db will refuse to work with it.

> at least on linux targets that have nptl support.

Same applies to LinuxThreads.

> Is that the only requirement?

No: libthread_db.so.1 must match libpthread.so.0 (both must
come from the same version of glibc).

-- 
Paul Pluzhnikov



More information about the Gdb mailing list