From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23397 invoked by alias); 3 Aug 2008 14:11:43 -0000 Received: (qmail 23387 invoked by uid 22791); 3 Aug 2008 14:11:42 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 03 Aug 2008 14:11:03 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6BFB59839F; Sun, 3 Aug 2008 14:11:01 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 40F2C9839E; Sun, 3 Aug 2008 14:11:01 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KPeIW-0002gb-82; Sun, 03 Aug 2008 10:11:00 -0400 Date: Sun, 03 Aug 2008 14:11:00 -0000 From: Daniel Jacobowitz To: Alan Turing Cc: gdb@sourceware.org Subject: Re: Debugging multithreaded application with GDB Message-ID: <20080803141100.GA10034@caradoc.them.org> Mail-Followup-To: Alan Turing , gdb@sourceware.org References: <74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com> User-Agent: Mutt/1.5.17 (2008-05-11) 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-08/txt/msg00047.txt.bz2 On Sun, Aug 03, 2008 at 03:40:28PM +0300, Alan Turing wrote: > My problem: > I need to catch the thread as close to its starting point as possible. > Setting a break point after the thread is already running means it's > way past the desired break point. You can't set thread-specific breakpoints before a thread is running, because the ID of the thread is not known yet. But normal breakpoints affect all threads. Can you set a breakpoint at the thread entry function without specifying the thread? -- Daniel Jacobowitz CodeSourcery