how can I dump out thread informations in gdb
Bradshaw, James
jbradsha@enterasys.com
Wed Oct 22 20:14:00 GMT 2008
And when "info threads" gives the incorrect information, how exactly do we address that problem? I gather from earlier posts, libthread_db on the target must not be stripped in order to correctly view threads--at least on linux targets that have nptl support. Is that the only requirement?
-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Paul Pluzhnikov
Sent: Wednesday, October 22, 2008 4:04 PM
To: ying lcs
Cc: gdb@sourceware.org
Subject: Re: how can I dump out thread informations in gdb
On Wed, Oct 22, 2008 at 1:01 PM, ying lcs <yinglcs@gmail.com> wrote:
> Can you please tell me how can I print out what are all the existing
> threads in my programs (while I hit a breakpoint)?
> And what are the stack trace of each of those threads?
RTFM?
info threads
thread apply all where
--
Paul Pluzhnikov
More information about the Gdb
mailing list