From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Stephens Newsgroups: gmane.emacs.devel Subject: Re: new gdb/gdba code has bug with absolute source filenames Date: Thu, 08 Jan 2004 11:11:07 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84oeteae5w.fsf@cenderis.demon.co.uk> References: <16380.35732.41673.248437@nick.uklinux.net> <84vfnnb73l.fsf@cenderis.demon.co.uk> <16381.12091.162795.324113@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073566670 3842 80.91.224.253 (8 Jan 2004 12:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 12:57:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 08 13:57:46 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeZjO-0000YQ-00 for ; Thu, 08 Jan 2004 13:57:46 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeZjO-0002Sj-00 for ; Thu, 08 Jan 2004 13:57:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aea8K-0007hB-JU for emacs-devel@quimby.gnus.org; Thu, 08 Jan 2004 08:23:32 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AeZxm-0005jZ-SS for emacs-devel@gnu.org; Thu, 08 Jan 2004 08:12:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AeZ4h-0007dH-HG for emacs-devel@gnu.org; Thu, 08 Jan 2004 07:16:14 -0500 Original-Received: from [62.3.217.251] (helo=rufus.isode.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeZ1i-0006pP-GX for emacs-devel@gnu.org; Thu, 08 Jan 2004 07:12:38 -0500 Original-Received: from cenderis.demon.co.uk ([62.49.17.254]) by rufus.isode.com via TCP (with SMTP (internal)) with ESMTP for ; Thu, 8 Jan 2004 11:11:08 +0000 Original-To: emacs-devel@gnu.org In-Reply-To: <16381.12091.162795.324113@nick.uklinux.net> (Nick Roberts's message of "Thu, 8 Jan 2004 10:21:47 +0000") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19102 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19102 Nick Roberts writes: [...] > I don't know if this is a bug in gdb or gcc or normal output. I > don't see why gdb can't find the compilation directory from the > executable. You used gcc version 3.3.3, is that a stable version? No. I get the same with Debian's gcc-3.2, which is 3.2.3 (possibly with minor Debian patches). > > Perhaps I'm being naive, but it looks to me like gdb-source-info ought > > to be looking at "Located in ..." and just believing it. (Possibly > > this wouldn't work for Windows or older gdbs or something.) > > It *does* use "Located in ...". Below is a patch that should work in your > case. I'm not sure whether I should commit it to the repository though. You're right. I was suggesting it shouldn't be interested in the compilation directory, but that probably *is* naive. Your patch seems right to me, but I can understand your uncertainty---this is probably something that shouldn't happen. [...]