From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10034 invoked by alias); 16 Feb 2004 15:46:30 -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 10027 invoked from network); 16 Feb 2004 15:46:29 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 16 Feb 2004 15:46:29 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Askx2-0004pN-JU for ; Mon, 16 Feb 2004 10:46:28 -0500 Date: Mon, 16 Feb 2004 15:46:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: [MI] -file-list-exec-source-files Message-ID: <20040216154628.GA996@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20040213012946.GB4476@white> <20040216033008.GB2685@nevyn.them.org> <20040216034525.GA3437@white> <20040216034930.GA29864@nevyn.them.org> <20040216153329.GA3978@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040216153329.GA3978@white> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00160.txt.bz2 On Mon, Feb 16, 2004 at 10:33:29AM -0500, Bob Rossi wrote: > Here is the problem I am trying to solve. > > Any front end needs to know the absolute path to the source files. From > what I can see, there are several ways of finding the absolute path. > In some cases, all of this info is needed. > So, basically, I am making an assumption, if GDB can not find the > absolute path to the source file, the front end can not. Is this true? > Also, why should the front ends do it, if it can be done correctly in > one place? Then why are you trying to return symtab->dirname at all? Or have I misinterpreted you, and you were returning symtab->fullname? I don't think symtab->dirname should be exposed in this interface. > As far as I know, most existing front ends use annotate level 1-2-3 to > figure out where the source file is. I just want to simplify this > process, so that front ends can easily get the absolute path to the > source file without having to run multiple commands, like the CLI. This sounds like the front end is only ever interested in one source file at a time, so that would be a more efficient design than asking GDB to provide fullnames for every source file at once. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer