This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

RE: how can I dump out thread informations in gdb


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


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