From owner-freebsd-questions Mon Jul 29 14:15:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F9A437B400; Mon, 29 Jul 2002 14:15:44 -0700 (PDT) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5314543E72; Mon, 29 Jul 2002 14:15:43 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id OAA20262; Mon, 29 Jul 2002 14:13:55 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g6TLCau13175; Mon, 29 Jul 2002 14:12:36 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200207292112.g6TLCau13175@arch20m.dellroad.org> Subject: GDB with -pthread program To: freebsd-questions@freebsd.org Date: Mon, 29 Jul 2002 14:12:36 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm trying to debug a threaded (-pthread) program using gdb. When I say "info threads" I see all of the created threads, but the main thread does not appear (and it has not exited yet). So there seems to be no way to switch to the main thread to examine its stack. Is there something I'm missing or is this just broken, and if so why? Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message