From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3133 invoked by alias); 7 Oct 2004 10:56:26 -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 3110 invoked from network); 7 Oct 2004 10:56:24 -0000 Received: from unknown (HELO smtp06.retemail.es) (62.81.186.16) by sourceware.org with SMTP; 7 Oct 2004 10:56:24 -0000 Received: from cliente-217217185116.ubrseb01.supercable.es ([217.217.185.116]) by smtp06.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20041007105623.BJPO28901.smtp06.retemail.es@cliente-217217185116.ubrseb01.supercable.es> for ; Thu, 7 Oct 2004 12:56:23 +0200 From: =?iso-8859-1?q?Jos=E9_Miguel?= To: gdb@sources.redhat.com Subject: Re: Compilation directories Date: Thu, 07 Oct 2004 12:23:00 -0000 User-Agent: KMail/1.6.2 References: <200410051258.40098.jmiguelbenitez@supercable.es> <200410061036.49407.jmiguelbenitez@supercable.es> <20041006133927.GA22197@nevyn.them.org> In-Reply-To: <20041006133927.GA22197@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200410071257.21085.jmiguelbenitez@supercable.es> X-SW-Source: 2004-10/txt/msg00201.txt.bz2 On Wednesday 06 October 2004 15:39, Daniel Jacobowitz wrote: > On Wed, Oct 06, 2004 at 10:36:49AM +0200, Jos=E9 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. That's exactly what I want. Thank you very much. Jose Miguel