From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2856 invoked by alias); 12 Feb 2010 10:29:00 -0000 Received: (qmail 2847 invoked by uid 22791); 12 Feb 2010 10:28:59 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Feb 2010 10:28:55 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NfslX-00039s-Oz for gdb@sources.redhat.com; Fri, 12 Feb 2010 11:28:51 +0100 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2010 11:28:51 +0100 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2010 11:28:51 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: [MI] -exec-return or CLI 'return' do not trigger MI events Followup-To: gmane.comp.gdb.devel Date: Fri, 12 Feb 2010 10:29:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit User-Agent: KNode/4.3.2 X-IsSubscribed: yes 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: 2010-02/txt/msg00085.txt.bz2 Marc Khouzam wrote: > Hi, > > I just noticed that GDB 7.0.1 does not issue MI events > *running and *stopped for the CLI 'return' command. > This is the relevant output, while the whole (small) > session is after. > > (gdb) -exec-return > ^done,frame={level="0",addr="0x08048412",func="foo",args=[],file="a.cc",fullname="/local/lmckhou/testing/a.cc",line="6"} > (gdb) return > &"return\n" > ~"#0 main () at a.cc:9\n" > ~"9\t return 0;\n" > ^done > > Do you want me to write a bug? For all I can tell, the 'return' command does not actually resume the target. It just pops the stack. - Volodya