From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 548 invoked by alias); 17 Feb 2006 13:56:37 -0000 Received: (qmail 540 invoked by uid 22791); 17 Feb 2006 13:56:37 -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; Fri, 17 Feb 2006 13:56:36 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FA666-0004rU-5Y for gdb@sourceware.org; Fri, 17 Feb 2006 08:56:34 -0500 Date: Fri, 17 Feb 2006 13:56:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: MI: output of -break-insert and -break-watch Message-ID: <20060217135634.GA18641@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00172.txt.bz2 On Fri, Feb 17, 2006 at 03:37:21PM +0300, Vladimir Prus wrote: > > Hello! > > The output of -break-insert and -break-watch currently looks like this: > > ^done,bkpt={number="1",...... > > and > > ^done,wpt={number="2",....... > > What is exactly the point of using different field names: "bkpt" and "wpt"? > This makes it impossible to get the number of set breakpoint in a uniform > fashion -- I need to have some conditional on the type of breakpoint, or > add logic that checks if "bkpt" or "wpt" is present in reply. I don't get it. Why is this a problem? It sounds to me like the only reason this would be awkward would be limitations of your front end. If you've done -break-insert you should expect a bkpt response, if you've done -break-watch you should expect a wpt response. -- Daniel Jacobowitz CodeSourcery