From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31042 invoked by alias); 17 Feb 2006 13:53:57 -0000 Received: (qmail 31033 invoked by uid 22791); 17 Feb 2006 13:53:57 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Feb 2006 13:53:56 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-10-40.inter.net.il [80.230.10.40]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DOV87728 (AUTH halo1); Fri, 17 Feb 2006 15:53:33 +0200 (IST) Date: Fri, 17 Feb 2006 13:53:00 -0000 Message-Id: From: Eli Zaretskii To: Vladimir Prus CC: gdb@sources.redhat.com In-reply-to: (message from Vladimir Prus on Fri, 17 Feb 2006 15:37:21 +0300) Subject: Re: MI: output of -break-insert and -break-watch Reply-to: Eli Zaretskii References: 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/msg00170.txt.bz2 > From: Vladimir Prus > Date: Fri, 17 Feb 2006 15:37:21 +0300 > > 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. > > Why can't we have just: > > ^done,number="1" > > ? And this can be done in backward-compatible way, btw. How about ^done,type="wpt",number="2"... or ^done,bkpt={number="2",type="wpt",... instead? I think leaving the breakpoint type out might not be a good idea, since the response might not come in sync with the commands. That is, you could have sent several commands before you get the first response. In that case, you will not easily know which response is for what command.