From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25708 invoked by alias); 21 Jun 2005 22:03:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25697 invoked by uid 22791); 21 Jun 2005 22:03:05 -0000 Received: from lakermmtao03.cox.net (HELO lakermmtao03.cox.net) (68.230.240.36) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 21 Jun 2005 22:03:05 +0000 Received: from white ([68.9.64.121]) by lakermmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050621220304.ZUQC18229.lakermmtao03.cox.net@white>; Tue, 21 Jun 2005 18:03:04 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Dkqpj-0001li-00; Tue, 21 Jun 2005 18:03:03 -0400 Date: Tue, 21 Jun 2005 22:03:00 -0000 From: Bob Rossi To: Midnight Xiong Cc: gdb@sources.redhat.com Subject: Re: the fullname in MI Message-ID: <20050621220303.GB6754@white> Mail-Followup-To: Midnight Xiong , gdb@sources.redhat.com References: <7f89a3ea050621145727f72dad@mail.gmail.com> <7f89a3ea05062114585b8e320b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f89a3ea05062114585b8e320b@mail.gmail.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-06/txt/msg00196.txt.bz2 On Wed, Jun 22, 2005 at 06:58:41AM +0900, Midnight Xiong wrote: > Hi, > I'm wondering, how can I get the fullname of source file in MI output? > For example, > ^done,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x00401342", > func="main",args=[{name="argc",value="1"},{name="argv",value="0x3d24c8"}],file=" > test.c",line="11"} > > For file="test.c", how can I determine the correct filename (with > absolute path)? > Thank you so much. You can either add a patch to GDB/MI that puts the fullname in the breakpoint output, or you can call -file-list-exec-source-file (which will tell you the fullname of the current source line), or you can call -file-list-exec-source-files to get a list of all the filename/fullname pairs that GDB knows about. The first approach would be best and I could point you in the correct direction. Bob Rossi