From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28280 invoked by alias); 21 Nov 2005 15:07:37 -0000 Received: (qmail 27988 invoked by uid 22791); 21 Nov 2005 15:07:36 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 21 Nov 2005 15:07:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EeDGW-0005Ta-MY; Mon, 21 Nov 2005 10:07:32 -0500 Date: Mon, 21 Nov 2005 15:07:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus , gdb@sources.redhat.com Subject: Re: MI: full file name Message-ID: <20051121150732.GA20963@nevyn.them.org> Mail-Followup-To: Vladimir Prus , gdb@sources.redhat.com References: <20051121144538.GB14604@white> <200511211753.07423.ghost@cs.msu.su> <20051121145453.GC14604@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051121145453.GC14604@white> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00451.txt.bz2 On Mon, Nov 21, 2005 at 09:54:53AM -0500, Bob Rossi wrote: > On Mon, Nov 21, 2005 at 05:53:06PM +0300, Vladimir Prus wrote: > > On Monday 21 November 2005 17:45, Bob Rossi wrote: > > > > 1. Can I get full file name in MI output somehow? > > > > > > -file-list-exec-source-file > > > > Thanks. > > > > Is there any reason why I need separate MI command? Can't "*stopped" packet > > include full file name as well? > > I believe this is in the works. Actually, this might already work with > mi2 or latest CVS. Maybe someone else knows better. I've been very busy, > and haven't had time to keep up. Looks like it's been done in 6.4: drow@caradoc:~% gdb -i=mi ~/nevyn-home/debugging/printf ~"GNU gdb 6.3.90_20051119-debian\n" ~"Copyright 2004 Free Software Foundation, Inc.\n" ~"GDB is free software, covered by the GNU General Public License, and you are\n" ~"welcome to change it and/or distribute copies of it under certain conditions.\n" ~"Type \"show copying\" to see the conditions.\n" ~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-linux-gnu\"..." ~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n" ~"\n" (gdb) -break-insert main ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048394",func="main",file="debugging/printf.c",line="6",times="0"} (gdb) -exec-run ^running (gdb) &"warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4\n" *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x08048394",func="main",args=[{name="argc",value="1"},{name="argv",value="0xffffc4b4"}],file="debugging/printf.c",line="6"} (gdb) And then again with appropriate "dir" so GDB can find the file: -exec-run ^running (gdb) &"warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4\n" *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x08048394",func="main",args=[{name="argc",value="1"},{name="argv",value="0xffffc974"}],file="debugging/printf.c",fullname="/home/drow/mnt/nevyn/home/drow/debugging/printf.c",line="6"} (gdb) I didn't try 6.3. -- Daniel Jacobowitz CodeSourcery, LLC