From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24385 invoked by alias); 6 Oct 2004 13:39:29 -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 24378 invoked from network); 6 Oct 2004 13:39:28 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 6 Oct 2004 13:39:28 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CFC0t-0005qe-Lf; Wed, 06 Oct 2004 09:39:27 -0400 Date: Wed, 06 Oct 2004 13:40:00 -0000 From: Daniel Jacobowitz To: =?iso-8859-1?Q?Jos=E9?= Miguel Cc: gdb@sources.redhat.com Subject: Re: Compilation directories Message-ID: <20041006133927.GA22197@nevyn.them.org> Mail-Followup-To: =?iso-8859-1?Q?Jos=E9?= Miguel , gdb@sources.redhat.com References: <200410051258.40098.jmiguelbenitez@supercable.es> <41635102.6010405@gnu.org> <20041006021840.GA310@nevyn.them.org> <200410061036.49407.jmiguelbenitez@supercable.es> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200410061036.49407.jmiguelbenitez@supercable.es> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00126.txt.bz2 On Wed, Oct 06, 2004 at 10:36:49AM +0200, José Miguel wrote: > On Wednesday 06 October 2004 04:18, Daniel Jacobowitz wrote: > > There is no way to do it. $cdir isn't a convenience variable, because > > there's no way for convenience variables to represent strings today. > > It's just text substitution in the source path searching. > > So, is there any way to work with absolute paths? I mean, if I'm debugging a > program > mcore-elf-gdb sample.elf > and I type > info sources > I get no information about paths > main.c, set_led.c > This is always that way although executable file and sources are in different > directories. I know gdb knows where to find the source files because if I > type > info source main > gdb asks me > Current source file is main.c > Compilation directory is /home/matt/proyecto/gnusample > Located in /home/matt/proyecto/gnusample/main.c > Then, my question is if there's a way to get something like > info sources > /home/matt/proyecto/gnusample/main.c, /home/matt/proyecto/gnusample/set_led.c > I'm trying to make a front end for gdb, so if I want to show the source files > I need to know where to find them. I recommend you use GDB 6.2, and the MI command -file-list-exec-source-files. You want the "fullname" portion of the output. -- Daniel Jacobowitz