From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22745 invoked by alias); 24 Jun 2006 06:32:10 -0000 Received: (qmail 22736 invoked by uid 22791); 24 Jun 2006 06:32:09 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 24 Jun 2006 06:32:07 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-201-39.inter.net.il [80.230.201.39]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DVQ20777 (AUTH halo1); Sat, 24 Jun 2006 09:32:02 +0300 (IDT) Date: Sat, 24 Jun 2006 06:59:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: gdb@sources.redhat.com In-reply-to: <20060623201019.GX22750@adacore.com> (message from Joel Brobecker on Fri, 23 Jun 2006 13:10:19 -0700) Subject: Re: Should "dir" override the full path encoded in debug info? Reply-to: Eli Zaretskii References: <20060623201019.GX22750@adacore.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00202.txt.bz2 > Date: Fri, 23 Jun 2006 13:10:19 -0700 > From: Joel Brobecker > > My coworker tried to run the debugger using that copy of the executable > and used "dir" commands to point to his copy of the sources. > Unfortunately, that didn't work as the debugger insisted on using > the original location for getting the source files. As Daniel points out, this is a complicated issue; the relevant code was changed several times during the last year to cater to several popular practices wrt source location. I think, to judge whether this is a bug or a feature, we need to see more information, like the original location of the sources during compilation, what file names are recorded in the debug info, the "dir" command that was issued at debug time, and the unwanted behavior and/or the error message(s), if any, from GDB.