From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5312 invoked by alias); 29 May 2014 04:26:39 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5289 invoked by uid 89); 29 May 2014 04:26:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail.lvk.cs.msu.su Received: from lvk-gate.cs.msu.ru (HELO mail.lvk.cs.msu.su) (188.44.42.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 29 May 2014 04:26:34 +0000 Received: from mail.lvk.cs.msu.su (localhost.localdomain [127.0.0.1]) by mail.lvk.cs.msu.su (Postfix) with ESMTP id 243D0701AD4; Thu, 29 May 2014 08:26:28 +0400 (MSK) X-Spam-ASN: Received: from [192.168.0.103] (h86-62-88-129.ln.rinet.ru [86.62.88.129]) by mail.lvk.cs.msu.su (Postfix) with ESMTPSA id 08F74701A51; Thu, 29 May 2014 08:26:28 +0400 (MSK) Message-ID: <5386B6F1.1010708@cs.msu.su> Date: Thu, 29 May 2014 17:04:00 -0000 From: Vladimir Prus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Bob Rossi CC: gdb@sourceware.org Subject: Re: GDB/MI async output token field References: <20140523011405.GA10166@linux> <538198B5.30208@cs.msu.su> <20140527155549.GA25063@linux> <20140529024922.GA3072@linux> In-Reply-To: <20140529024922.GA3072@linux> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP X-SW-Source: 2014-05/txt/msg00081.txt.bz2 On 05/29/2014 06:49 AM, Bob Rossi wrote: > On Tue, May 27, 2014 at 11:55:49AM -0400, Bob Rossi wrote: >> On Sun, May 25, 2014 at 11:16:05AM +0400, Vladimir Prus wrote: >>> On 05/23/2014 05:14 AM, Bob Rossi wrote: >>>> On this page, >>>> https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Output-Syntax.html#GDB_002fMI-Output-Syntax >>>> >>>> The documentation says, >>>> Note that for all async output, while the token is allowed by the >>>> grammar and may be output by future versions of gdb for select async >>>> output messages, it is generally omitted. >>>> >>>> Frontends should treat all async output as reporting general changes in >>>> the state of the target and there should be no need to associate async >>>> output to any prior command. >>>> >>>> I searched through the GDB source code and can't find a single place >>>> where this occurs. >>> >>> such clarification will be good. >> >> 2008-04-24 Vladimir Prus >> >> * gdb.texinfo (GDB/MI Output Syntax): Clarify that async >> output does not necessary include any tokens. >> >> That looked a little suspicous. That is, perhaps there are cases were >> the token is in the async output? >> > Perhaps I was unclear. I have a patch that removes the [token] syntax > from the GDB manual regarding async output. > > I found your commit message that added a note that stated async > output does not necessarily include tokens. > > The note made me think that at the time, you knew of at least one case > where async output would include the token (or you would have removed > the token syntax from the async output instead of saying that the token > might not be included). > > Can you (or anyone) recall a case where GDB would output a token with an > async record? > > I don't want to post a patch that removes the token syntax from the gdb > manual if indeed someone will run into it in the wild. That makes the > situation worse, not better. The ChangeLog entry is useless, as usual. Here are relevant emails: https://sourceware.org/ml/gdb/2008-03/msg00239.html https://sourceware.org/ml/gdb-patches/2008-04/msg00202.html The was single case where token was included in async output, and I removed that. I don't believe any new cases were added, and nobody was upset in all that time, so adjusting documentation to say that async output never includes any tokens seems reasonable to me. - Volodya