From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5287 invoked by alias); 22 Oct 2008 20:14:10 -0000 Received: (qmail 5273 invoked by uid 22791); 22 Oct 2008 20:14:09 -0000 X-Spam-Check-By: sourceware.org Received: from is1.enterasys.com (HELO IS1.enterasys.com) (134.141.1.139) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Oct 2008 20:13:34 +0000 Received: from MAEXCEVS1.ets.enterasys.com ([fe80::90b0:3940:6b9:a734]) bymacas2.ets.enterasys.com ([fe80::f9b5:1310:4e45:498a%10]) with mapi; Wed, 22Oct 2008 16:13:16 -0400 From: "Bradshaw, James" To: Paul Pluzhnikov , ying lcs CC: "gdb@sourceware.org" Date: Wed, 22 Oct 2008 20:14:00 -0000 Subject: RE: how can I dump out thread informations in gdb Message-ID: <9D7446CE06F3C647B7D17BA71E3AB9900464FC8F29@MAEXCEVS1.ets.enterasys.com> References: <568e62a40810221301t301c7d46o9e1d4446d54abc7f@mail.gmail.com><8a c60eac0810221304n4c244406ja26b0be0e6653d5b@mail.gmail.com> In-Reply-To: <8ac60eac0810221304n4c244406ja26b0be0e6653d5b@mail.gmail.com> Accept-Language: en-US Content-Language: en-US acceptlanguage: en-US Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-imss-version: 2.051 X-imss-result: Passed X-imss-approveListMatch: *@enterasys.com X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00096.txt.bz2 And when "info threads" gives the incorrect information, how exactly do we = address that problem? I gather from earlier posts, libthread_db on the targ= et must not be stripped in order to correctly view threads--at least on lin= ux 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 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