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:04:45 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84y8siaegi.fsf@cenderis.demon.co.uk> References: <16380.35732.41673.248437@nick.uklinux.net> <84vfnnb73l.fsf@cenderis.demon.co.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073560241 23938 80.91.224.253 (8 Jan 2004 11:10:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 11:10:41 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 08 12:10:37 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 1AeY3h-0003LD-00 for ; Thu, 08 Jan 2004 12:10:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeY3h-00010U-00 for ; Thu, 08 Jan 2004 12:10:37 +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 1AeZ0v-0006df-1V for emacs-devel@quimby.gnus.org; Thu, 08 Jan 2004 07:11:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AeYxG-0005M0-G8 for emacs-devel@gnu.org; Thu, 08 Jan 2004 07:08:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AeYwh-0005Cf-Cu for emacs-devel@gnu.org; Thu, 08 Jan 2004 07:07:59 -0500 Original-Received: from [62.3.217.251] (helo=rufus.isode.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeYvZ-0004vQ-4q for emacs-devel@gnu.org; Thu, 08 Jan 2004 07:06:17 -0500 Original-Received: from cenderis.demon.co.uk ([62.49.17.254]) by rufus.isode.com via TCP (with SMTP (internal)) with ESMTP; Thu, 8 Jan 2004 11:04:47 +0000 Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Thu, 08 Jan 2004 11:27:38 +0100") 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:19101 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19101 Andreas Schwab writes: > Bruce Stephens writes: > >> Actually, it did seem to fix the problem for the test example. But >> didn't seem to for a real program with a much longer file name. > > Can you step through gdb-frame-handler with edebug and look at gdb's > output in gdb-partial-output-buffer? I don't need to. The problem is right at the beginning. As Nick pointed out, for the broken case, gdb doesn't report the compilation directory, so the first test fails, and gdb-view-source is set to nil. > I tried it with real long filenames and function names, and it > didn't fail for me. I no longer think that it's length. I think it's that absolute and relative filenames end up different, for some reason. I guess this is the kind of thing that may well vary depending on debugging format, compiler, and platform. [...]