From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10432 invoked by alias); 7 Feb 2003 13:06:53 -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 10425 invoked from network); 7 Feb 2003 13:06:53 -0000 Received: from unknown (HELO white) (68.14.146.65) by 172.16.49.205 with SMTP; 7 Feb 2003 13:06:53 -0000 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 18h8DU-0002Bn-00 for ; Fri, 07 Feb 2003 08:06:52 -0500 Date: Fri, 07 Feb 2003 13:06:00 -0000 From: Bob Rossi To: gdb@sources.redhat.com Subject: Re: GDB/MI absolute path Message-ID: <20030207130652.GB7980@white> Mail-Followup-To: gdb@sources.redhat.com References: <20030206215525.GC7441@white> <1044569850.2029.144.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1044569850.2029.144.camel@lindt.uglyboxes.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-02/txt/msg00146.txt.bz2 Thanks for the great answer. On Thu, Feb 06, 2003 at 02:17:30PM -0800, Keith Seitz wrote: > On Thu, 2003-02-06 at 13:55, Bob Rossi wrote: > > Also, what is the best way to ask mi for the absolute path to the > > current source file. This wasn't a problem using annotate 1 or 2, and I > > can't figure out how to get it using mi. > > This is a known (to me) problem with MI. The problem is that MI was > designed to work with an IDE, not just a stand-alone GUI for the > debugger. In the case of an IDE, this information isn't needed, since > the IDE knows everything there is to know about files. > > However, like Insight, cgdb will need some way of turning > "../foo/bar/baz.c" into "/home/a/b/c/foo/bar/baz.c". There are two > options (excluding hacks around the problem): > > 1. Get the complete source search path from GDB and let the GUI search > for the file. This means the GUI writer would also need the compile > directory for each file. > > 2. Get GDB to tell you where it thinks a file is located. I would like to write a patch to GDB/MI and send it in with a bug report. Does any of the GDB/MI maintainers know if the current design model of GDB/MI would prefer an implicit return of the current absolute path ( like annotations ) or an explicit return ( the GUI requests it every time via a new GDB/MI command). Thanks Bobby