From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: new gdb/gdba code has bug with absolute source filenames Date: Wed, 7 Jan 2004 22:43:32 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16380.35732.41673.248437@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1073519251 22740 80.91.224.253 (7 Jan 2004 23:47:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 23:47:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jan 08 00:47:28 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 1AeNOa-0008CH-00 for ; Thu, 08 Jan 2004 00:47:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AeNOa-0007FG-00 for ; Thu, 08 Jan 2004 00:47:28 +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 1AeOKv-0000YR-Am for emacs-devel@quimby.gnus.org; Wed, 07 Jan 2004 19:47:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AeOCn-0007Xr-Ce for emacs-devel@gnu.org; Wed, 07 Jan 2004 19:39:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AeNls-0003ST-Uq for emacs-devel@gnu.org; Wed, 07 Jan 2004 19:12:04 -0500 Original-Received: from [194.247.49.201] (helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AeNau-0000Pc-Up for emacs-devel@gnu.org; Wed, 07 Jan 2004 19:00:13 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 6679F75FDE; Wed, 7 Jan 2004 22:43:32 +0000 (GMT) Original-To: Andreas Schwab , Bruce Stephens X-Mailer: VM 6.97 under Emacs 21.2.1 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:19082 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19082 > > With a file (whose contents don't matter much) hello.c in /tmp. > > > > gcc -g3 -o hello hello.c > > > > Then I can debug hello fine with the new M-x gdb. > > > > If I compile it thus: > > > > gcc -g3 -o hello /tmp/hello.c > > > > then when I do M-x gdb, and select gdb --annotate=3 hello, I see the > > assembler code for main rather than C source code. > This is because gdb-frame-handler can't handle word wrapping in the > ouput of "info frame". Should be fixed now. I've not considered word wrapping. I can see that this would create problems but I don't think this fixes the problem stated above as it happens before execution has started, when "info frame" just gives "No stack." The source code is located for Emacs with the GDB command "info source". Bruce, when you see the assembler code for main rather than C source code what does GDB say when you type "info source" in the GUD buffer? I can't duplicate this problem. What operating system, version of GDB, gcc etc are you using? Andreas, I imagine other handlers in gdb-ui.el can't handle word wrapping so I guess that running GDB command, "set width 0", on initialisation will help. Nick http://www.nick.uklinux.net