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 13:53:43 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84ad4yfswo.fsf@cenderis.demon.co.uk> References: <16380.35732.41673.248437@nick.uklinux.net> <16381.19672.120644.757561@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 1073593585 7619 80.91.224.253 (8 Jan 2004 20:26:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 20:26:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 08 21:26:16 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 1AegjQ-0003tz-00 for ; Thu, 08 Jan 2004 21:26:16 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AegjP-0000fn-00 for ; Thu, 08 Jan 2004 21:26:15 +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 1AefjG-0004Lo-Ow for emacs-devel@quimby.gnus.org; Thu, 08 Jan 2004 14:22:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AefjA-0004LK-Cy for emacs-devel@gnu.org; Thu, 08 Jan 2004 14:21:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aefid-0004HL-Kb for emacs-devel@gnu.org; Thu, 08 Jan 2004 14:21:54 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1Aebek-00065K-Hv for emacs-devel@gnu.org; Thu, 08 Jan 2004 10:01:06 -0500 Original-Received: from [62.3.217.251] (helo=rufus.isode.com) by mx20.gnu.org with esmtp (Exim 4.24) id 1AeadI-0005eZ-3g for emacs-devel@gnu.org; Thu, 08 Jan 2004 08:55:32 -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 13:53:44 +0000 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ilOdiN661dDpE3R7JcjNqZm1UdE= In-Reply-To: <16381.19672.120644.757561@nick.uklinux.net> (Nick Roberts's message of "Thu, 8 Jan 2004 12:28:08 +0000") 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:19107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19107 Nick Roberts writes: [...] > A good way to look at this output is to select > gdb-partial-output-buffer and type undo. That way you can cycle back > through its history. In the past I have found that edebug plays > havoc with real time aspects of the process filter. That's useful to know. In this case, though, I don't see that it would help: I can see the differing behaviour using gdb in a terminal. gdb isn't showing the compilation directory in this case, whereas with a relative filename ("gcc-3.2 -g3 -o hello ./hello.c") it does. I'd guess details of how gdb-partial-output-buffer evolves probably doesn't matter. I don't know which program is at fault. bruce% gcc-3.2 -g3 -o hello /tmp/hello.c bruce% gdb hello GNU gdb 6.0-debian Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"... (gdb) break main Breakpoint 1 at 0x8048340: file /tmp/hello.c, line 4. (gdb) run Starting program: /tmp/hello Breakpoint 1, main () at /tmp/hello.c:4 4 exit(0); (gdb) info source Current source file is /tmp/hello.c Located in /tmp/hello.c Contains 6 lines. Source language is c. Compiled with DWARF 2 debugging format. Includes preprocessor macro info.