From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10524 invoked by alias); 11 Oct 2006 13:55:54 -0000 Received: (qmail 10513 invoked by uid 22791); 11 Oct 2006 13:55:53 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 11 Oct 2006 13:55:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GXeYj-0006nO-QI; Wed, 11 Oct 2006 09:55:45 -0400 Date: Wed, 11 Oct 2006 13:55:00 -0000 From: Daniel Jacobowitz To: Andrew STUBBS Cc: GDB Patches Subject: Re: [PATCH] Don't give spurious warnings when using thread specific breakpoints Message-ID: <20061011135545.GA26060@nevyn.them.org> Mail-Followup-To: Andrew STUBBS , GDB Patches References: <452CF534.4060209@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <452CF534.4060209@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00111.txt.bz2 On Wed, Oct 11, 2006 at 02:44:20PM +0100, Andrew STUBBS wrote: > When creating a thread specific breakpoint GDB will warn about other > breakpoints set on the same address even when they are specific to > another thread. > > The attached patch prevents it warning about breakpoints from other > threads. When a non-thread specific breakpoint is created, or already > exists, the warning is still given, but is annotated with the thread > information. When not using thread specific breakpoints the behaviour > should remain unaltered. (gdb) b main if 1 Breakpoint 1 at 0x439ee0 (gdb) b main if 2 Note: breakpoint 1 also set at pc 0x439ee0. Breakpoint 2 at 0x439ee0 If that's right, why is similar for threads wrong? That's just a different condition. And the wording is such that it's perfectly correct. -- Daniel Jacobowitz CodeSourcery