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: gud.el file/line problems Date: Thu, 11 Sep 2003 18:37:42 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16224.45798.467443.790850@nick.uklinux.net> References: 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 1063302697 23240 80.91.224.253 (11 Sep 2003 17:51:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 17:51:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Sep 11 19:51:35 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xVbT-0002kx-00 for ; Thu, 11 Sep 2003 19:51:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19xVcO-0001J5-00 for ; Thu, 11 Sep 2003 19:52:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xVUl-0000T2-Dt for emacs-devel@quimby.gnus.org; Thu, 11 Sep 2003 13:44:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19xVUZ-0000S8-2G for emacs-devel@gnu.org; Thu, 11 Sep 2003 13:44:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19xVUW-0000RR-RL for emacs-devel@gnu.org; Thu, 11 Sep 2003 13:44:25 -0400 Original-Received: from [194.247.51.184] (helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xVTt-0000Ha-Fn for emacs-devel@gnu.org; Thu, 11 Sep 2003 13:43:47 -0400 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 1FCB875FDE; Thu, 11 Sep 2003 18:37:43 +0100 (BST) Original-To: "R Reitmaier" In-Reply-To: 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:16302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16302 > I'm trying to hook up a gdb command-like, custom made > command line debugger to work with gud. > > The debugger supports commands that are identical to > gdb and also generates the same output. Perhaps you could call your debugger, err.. gdb? > I haven't modified gud.el at all, as I expected that > if I keep the command set identical and the output the > same, it should work seamlessly. > Unfortunately, it does not. I can perform single > stepping, continue, etc without a hitch but for some > reason emacs refuses to display the source file and > the associated => pointer. You don't say which version of Emacs that you're running but I guess its not the one in CVS because you would then see that GDB is run with the "--fullname" option. With this every time gdb stops it generates something like: ^Z^Z/home/nick/myprog.c:23:209:beg:0x804846c and gud.el parses out the filename (/home/nick/myprog.c) and the line number to know where to put the overlay-arrow. I'm guessing that your program doesn't do this. > I've double checked the output when I hit a breakpoint > and it is identical to gdb, as far as I can tell. > >From my limited understanding of gud, it does a screen > scrape, looking for a "filename:line number", so if I > match the output it should work, right? Right. Presumably though, you've not written your program from scratch and you've made changes that you think improve gdb's behaviour. Why not submit them to gdb-patches@sources.redhat.com for peer review and to share? Nick