From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 828 invoked by alias); 6 Oct 2004 08:35:51 -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 816 invoked from network); 6 Oct 2004 08:35:50 -0000 Received: from unknown (HELO smtp07.retemail.es) (62.81.186.17) by sourceware.org with SMTP; 6 Oct 2004 08:35:50 -0000 Received: from cliente-217217185116.ubrseb01.supercable.es ([217.217.185.116]) by smtp07.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20041006083549.PDHL9737.smtp07.retemail.es@cliente-217217185116.ubrseb01.supercable.es> for ; Wed, 6 Oct 2004 10:35:49 +0200 From: =?iso-8859-1?q?Jos=E9_Miguel?= To: gdb@sources.redhat.com Subject: Re: Compilation directories Date: Wed, 06 Oct 2004 10:01:00 -0000 User-Agent: KMail/1.6.2 References: <200410051258.40098.jmiguelbenitez@supercable.es> <41635102.6010405@gnu.org> <20041006021840.GA310@nevyn.them.org> In-Reply-To: <20041006021840.GA310@nevyn.them.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410061036.49407.jmiguelbenitez@supercable.es> X-SW-Source: 2004-10/txt/msg00114.txt.bz2 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. Thanks. Jose Miguel