From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16341 invoked by alias); 29 Nov 2011 17:06:09 -0000 Received: (qmail 16290 invoked by uid 22791); 29 Nov 2011 17:06:08 -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 17:05:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 512F62BAC1A; Tue, 29 Nov 2011 12:05:52 -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 eIGn80MdbhzV; Tue, 29 Nov 2011 12:05:52 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1DD302BAB63; Tue, 29 Nov 2011 12:05:52 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 38681145615; Tue, 29 Nov 2011 12:05:38 -0500 (EST) Date: Tue, 29 Nov 2011 17:06:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sources.redhat.com Subject: Re: set multiple-symbol ask/cancel not working Message-ID: <20111129170538.GU24943@adacore.com> References: <20111123163917.GA13809@adacore.com> <20111123232406.GQ13809@adacore.com> <20111124105603.GA91879@adacore.com> <20111124163304.GR13809@adacore.com> <20111129032917.GR24943@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/msg00825.txt.bz2 > Tom> (gdb) b pck.adb:normal_Menu > Tom> [0] cancel > Tom> [1] all > Tom> [2] pck.adb:pck.normal_menu:4 > Tom> [3] pck.adb:pck.normal_menu:8 > > I am not at all sure about doing this. It means that the breakpoint > will stop working if the line number changes. This is what is already happening today. One of the future improvements we discussed was transitioning to a canonical format that used the argument types, much like C++ does. But this is a big project on its own, and we're not sure yet whether the debug info is sufficient for this, and how much code needs to be implemented in order to match the relevant semantic rules of the Ada language. > Maybe this is ok, since it is what the user asked for in > multiple-symbols=ask mode -- not the default, so he essentially asked > twice. Just to be certain, I assume that if the user selects "all", then we still get one multi-location breakpoint? > Another option would be to only apply this treatment to Ada. I am cool with that. Might be a little ugly, but I don't think we should penalize the other languages just because we're not ready to do so in Ada. -- Joel