From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14611 invoked by alias); 7 Apr 2009 18:55:59 -0000 Received: (qmail 14601 invoked by uid 22791); 7 Apr 2009 18:55:57 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Apr 2009 18:55:49 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LrGSY-0005RB-Vj for gdb@sources.redhat.com; Tue, 07 Apr 2009 18:55:47 +0000 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 ; Tue, 07 Apr 2009 18:55:46 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Apr 2009 18:55:46 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: MI: Orphaned output for core file debugging Date: Tue, 07 Apr 2009 19:06:00 -0000 Message-ID: References: <6D19CA8D71C89C43A057926FE0D4ADAA073B053A@ecamlmw720.eamcs.ericsson.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 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: 2009-04/txt/msg00088.txt.bz2 Marc Khouzam wrote: > Hi, > > I'm working on supporting core-file debugging in DSF-GDB. > I noticed a little bug that does _not_ affect me, but > I thought I would bring put it out there for general > knowledge. > > In HEAD and 6.8 (didn't try earlier), when using the -c option > on the command-line to specify the core file, when in MI mode, > there is a 'orphaned' frame output that is output on the first > MI command. In the session below you can see that my first > command is "-gdb-set confirm" and it has a frame as part > of its output. I ran the same command right after and got > the proper output. > > (This does not affect me because I'm going to use "-target-select core" > instead of the -c option.) > > I think this output may need to be in a *stopped event. > This would be quite nice for the "-target-select core" case too, > instead of relying on the ^connected output. > > Thanks > > Marc > > >> gdb -i mi -c core.32141 a.out > ~"GNU gdb 6.8\n" > ~"Copyright (C) 2008 Free Software Foundation, Inc.\n" ... > ~"Program terminated with signal 5, Trace/breakpoint trap.\n" > ~"[New process 32141]\n" > (gdb) > -gdb-set confirm > ^done,frame={level="0",addr="0x080484eb",func="main",args=[],file="b.cc" > ,fullname="/local/home/lmckhou/testing/b.cc",line="17"} > (gdb) > -gdb-set confirm > ^done Marc, thanks for report. I don't think I can look into this immediately -- can you put it in the issue tracker so that this has some chances of a fix later? Thanks, Volodya