From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5271 invoked by alias); 21 May 2008 03:59:50 -0000 Received: (qmail 5258 invoked by uid 22791); 21 May 2008 03:59:49 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 May 2008 03:59:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C1FBB2A9819 for ; Tue, 20 May 2008 23:59:27 -0400 (EDT) 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 paYGz+w1xRvJ for ; Tue, 20 May 2008 23:59:27 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 73A662A97B1 for ; Tue, 20 May 2008 23:59:27 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 6A77BE7ACD; Tue, 20 May 2008 20:59:24 -0700 (PDT) Date: Wed, 21 May 2008 03:59:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: [GDB/MI] missing token in "stopped" output after -exec-run? Message-ID: <20080521035924.GA4148@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i 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 X-SW-Source: 2008-05/txt/msg00149.txt.bz2 Hello, I noticed what looks like a change of behavior in MI and I was wondering if this was intended. From my limited understanding of MI, it does look like a bug, but it's hard to be sure for someone who's not familiar with this protocol. Consider the following program: int main (void) { } Compile it with: % gcc -g -o foo foo.c Then break on main, and run to the breakpoint. Make sure the -exec-run command has a token. Here is a transcript of my session: (gdb) -break-insert -t main ^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x08048332",func="main",file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6",times="0",original-location="main"} (gdb) 232-exec-run 232^running (gdb) =thread-created,id="1" *stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="1",frame={addr="0x08048332",func="main",args=[],file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6"} A few weeks ago, the output looked like this: 232-exec-run 232^running (gdb) 232*stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="1",frame={addr="0x08048332",func="main",args=[],file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6"} The token was preserved. Is the new behavior intended? -- Joel