From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8298 invoked by alias); 29 Nov 2011 03:11:33 -0000 Received: (qmail 8289 invoked by uid 22791); 29 Nov 2011 03:11:32 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Nov 2011 03:11:19 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 48BB92BAE4F; Mon, 28 Nov 2011 22:11:19 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2TdNjp94KHvB; Mon, 28 Nov 2011 22:11:19 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 2015B2BAE4A; Mon, 28 Nov 2011 22:11:19 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id E7720145615; Mon, 28 Nov 2011 22:11:05 -0500 (EST) Date: Tue, 29 Nov 2011 03:11:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sources.redhat.com Subject: multiple-location breakpoint output (was: "Re: GDB 7.4 branching status? (2011-11-23)") Message-ID: <20111129031105.GN24943@adacore.com> References: <20111123163917.GA13809@adacore.com> <20111123232406.GQ13809@adacore.com> <20111124105603.GA91879@adacore.com> <20111124163304.GR13809@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00797.txt.bz2 Just for the record, I noticed that the output of the "break" command has been slightly adjusted when inserting a multi-location breakpoint. Now, instead of printing "file [...], line [...]", it just prints the linespec itself. Eg: (gdb) b pck.adb:6 Breakpoint 1 at 0x40213b: pck.adb:6. (3 locations) Another example, when inserting a breakpoint on a function which has homonyms: (gdb) b get_value Breakpoint 1 at 0x402160: get_value. (2 locations) This is probably intentional, and I think that it's an improvement, particularly in the second situation, where each breakpoint corresponds to different line locations. -- Joel