From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18222 invoked by alias); 11 Feb 2010 19:50:20 -0000 Received: (qmail 18214 invoked by uid 22791); 11 Feb 2010 19:50:19 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Feb 2010 19:50:12 +0000 Received: from eusaamw0707.eamcs.ericsson.se ([147.117.20.32]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id o1BJphjH021999 for ; Thu, 11 Feb 2010 13:51:43 -0600 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.197]) by eusaamw0707.eamcs.ericsson.se ([147.117.20.32]) with mapi; Thu, 11 Feb 2010 14:50:09 -0500 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Thu, 11 Feb 2010 19:50:00 -0000 Subject: [MI] -exec-return or CLI 'return' do not trigger MI events Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00073.txt.bz2 Hi, I just noticed that GDB 7.0.1 does not issue MI events=20 *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=3D{level=3D"0",addr=3D"0x08048412",func=3D"foo",args=3D[],file= =3D"a.cc",fullname=3D"/local/lmckhou/testing/a.cc",line=3D"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? Thanks Marc ~"GNU gdb (GDB) 7.0.1\n" ~"Copyright (C) 2009 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \n" ~"This is free software: you are free to change and redistribute it.\n" ~"There is NO WARRANTY, to the extent permitted by law. Type \"show copyin= g\"\n" ~"and \"show warranty\" for details.\n" ~"This GDB was configured as \"i686-pc-linux-gnu\".\n" ~"For bug reporting instructions, please see:\n" ~"...\n" ~"Reading symbols from /local/lmckhou/testing/a.out..." ~"done.\n" (gdb)=20 l &"l\n" ~"1\tvoid foo1() {\n" ~"2\t return;\n" ~"3\t}\n" ~"4\tvoid foo() {\n" ~"5\t foo1();\n" ~"6\t}\n" ~"7\tint main() {\n" ~"8\t foo();\n" ~"9\t return 0;\n" ~"10\t}\n" ^done (gdb)=20 start &"start\n" ~"Temporary breakpoint 1 at 0x8048422: file a.cc, line 8.\n" ~"Starting program: /local/lmckhou/testing/a.out \n" =3Dthread-group-created,id=3D"2173" =3Dthread-created,id=3D"1",group-id=3D"2173" ^running *running,thread-id=3D"all" (gdb)=20 =3Dlibrary-loaded,id=3D"/lib/ld-linux.so.2",target-name=3D"/lib/ld-linux.so= .2",host-name=3D"/lib/ld-linux.so.2",symbols-loaded=3D"0" =3Dlibrary-loaded,id=3D"/usr/lib/libstdc++.so.6",target-name=3D"/usr/lib/li= bstdc++.so.6",host-name=3D"/usr/lib/libstdc++.so.6",symbols-loaded=3D"0" =3Dlibrary-loaded,id=3D"/lib/libm.so.6",target-name=3D"/lib/libm.so.6",host= -name=3D"/lib/libm.so.6",symbols-loaded=3D"0" =3Dlibrary-loaded,id=3D"/lib/libgcc_s.so.1",target-name=3D"/lib/libgcc_s.so= .1",host-name=3D"/lib/libgcc_s.so.1",symbols-loaded=3D"0" =3Dlibrary-loaded,id=3D"/lib/libc.so.6",target-name=3D"/lib/libc.so.6",host= -name=3D"/lib/libc.so.6",symbols-loaded=3D"0" ~"\n" ~"Temporary breakpoint 1, main () at a.cc:8\n" ~"8\t foo();\n" *stopped,frame=3D{addr=3D"0x08048422",func=3D"main",args=3D[],file=3D"a.cc"= ,fullname=3D"/local/lmckhou/testing/a.cc",line=3D"8"},thread-id=3D"1",stopp= ed-threads=3D"all" (gdb)=20 s &"s\n" ^running *running,thread-id=3D"all" (gdb)=20 ~"foo () at a.cc:5\n" ~"5\t foo1();\n" *stopped,frame=3D{addr=3D"0x0804840d",func=3D"foo",args=3D[],file=3D"a.cc",= fullname=3D"/local/lmckhou/testing/a.cc",line=3D"5"},thread-id=3D"1",stoppe= d-threads=3D"all" (gdb)=20 s &"s\n" ^running *running,thread-id=3D"all" (gdb)=20 ~"foo1 () at a.cc:3\n" ~"3\t}\n" *stopped,frame=3D{addr=3D"0x08048407",func=3D"foo1",args=3D[],file=3D"a.cc"= ,fullname=3D"/local/lmckhou/testing/a.cc",line=3D"3"},thread-id=3D"1",stopp= ed-threads=3D"all" (gdb)=20 -exec-return ^done,frame=3D{level=3D"0",addr=3D"0x08048412",func=3D"foo",args=3D[],file= =3D"a.cc",fullname=3D"/local/lmckhou/testing/a.cc",line=3D"6"} (gdb)=20 return &"return\n" ~"#0 main () at a.cc:9\n" ~"9\t return 0;\n" ^done (gdb)=20