From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7127 invoked by alias); 24 Jun 2006 07:40:11 -0000 Received: (qmail 7105 invoked by uid 22791); 24 Jun 2006 07:40:07 -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 07:40:03 +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 DVQ35137 (AUTH halo1); Sat, 24 Jun 2006 10:39:58 +0300 (IDT) Date: Sat, 24 Jun 2006 07:51:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: gdb@sources.redhat.com In-reply-to: <20060624071058.GD22750@adacore.com> (message from Joel Brobecker on Sat, 24 Jun 2006 00:10:58 -0700) Subject: Re: Should "dir" override the full path encoded in debug info? Reply-to: Eli Zaretskii References: <20060623201019.GX22750@adacore.com> <20060624065920.GB22750@adacore.com> <20060624071058.GD22750@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/msg00208.txt.bz2 > Date: Sat, 24 Jun 2006 00:10:58 -0700 > From: Joel Brobecker > Cc: gdb@sources.redhat.com > > > > (gdb) list foo.c:1 > > > warning: Source file is more recent than executable. > > > > What happens if you remove or rename the file foo.c in the original > > location? > > GDB finds the file in dup/. Then I think this is by design: GDB gives preference to existing files in the default places. > So basically, at this time, it appears that we're stuck. You could try duping GDB into not finding the original file with some symlink trick.