From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfredo Buttari" Newsgroups: gmane.emacs.bugs Subject: bug#1489: gud.el not working with idb Date: Fri, 5 Dec 2008 09:31:55 +0100 Message-ID: <714f3a810812050031i5239d34dkc4775d5c194f7c96@mail.gmail.com> References: <87fxl3w8us.fsf@cyd.mit.edu> <18744.50302.218800.732415@kahikatea.snap.net.nz> Reply-To: Alfredo Buttari , 1489@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14161_10767713.1228465915371" X-Trace: ger.gmane.org 1228473199 10536 80.91.229.12 (5 Dec 2008 10:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 10:33:19 +0000 (UTC) Cc: 1489@emacsbugs.donarmstrong.com, Chong Yidong To: "Nick Roberts" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 11:34:22 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L8Y0r-0008EY-Ti for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 11:34:22 +0100 Original-Received: from localhost ([127.0.0.1]:34937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Xzh-00032f-75 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 05:33:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8WOA-0000wv-US for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 03:50:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8WO8-0000wC-PH for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 03:50:18 -0500 Original-Received: from [199.232.76.173] (port=34033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8WO8-0000w5-IW for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 03:50:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49367) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8WO8-0007sQ-0n for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 03:50:16 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB58oDCZ026477; Fri, 5 Dec 2008 00:50:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB58e4nc023364; Fri, 5 Dec 2008 00:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: "Alfredo Buttari" Original-Sender: alfredo.buttari@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Dec 2008 08:40:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1489 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1489-submit@emacsbugs.donarmstrong.com id=B1489.122846592021973 (code B ref 1489); Fri, 05 Dec 2008 08:40:03 +0000 Original-Received: (at 1489) by emacsbugs.donarmstrong.com; 5 Dec 2008 08:32:00 +0000 Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB58VtK4021960 for <1489@emacsbugs.donarmstrong.com>; Fri, 5 Dec 2008 00:31:57 -0800 Original-Received: by an-out-0708.google.com with SMTP id c38so1738353ana.31 for <1489@emacsbugs.donarmstrong.com>; Fri, 05 Dec 2008 00:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=eHZEKI+EM5WBJsPuSUcXdjOAeFa68y/aPU//HeaZeB4=; b=T4tLeweS+zubahW6ikP2tAFBI1OgZZvWTs65EgUsl6mEhBZjBmXpvBYr8WAl80QZzq HxlRO7QW3m0SWT80YlxEYW+GH8DMDRwddK9+Y9KRh2oRKdIt2PuOwYYk1iZBlTYWdvjL DmoTy9IMjBs25SXYiVEj+NUi6mxNCtqdb3R2g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=nKBHvYPbO4iXrwlQcSV4LBuwItQZ6wFVvOfl7/3APCSWy/GWqNbNAWg+UVDTZtZ7Q7 jNckDZt5TpyUMGTnPgKx8G+/5Xd8DzzkzA5+IFBFJwN0z9bC5tSA1/kmiPfr7dmfSYq9 Apx1ueuaKkuZW7S+HTfoc8ca4+QBgJ4HvGTxY= Original-Received: by 10.100.43.10 with SMTP id q10mr8579999anq.1.1228465915386; Fri, 05 Dec 2008 00:31:55 -0800 (PST) Original-Received: by 10.100.172.14 with HTTP; Fri, 5 Dec 2008 00:31:55 -0800 (PST) In-Reply-To: <18744.50302.218800.732415@kahikatea.snap.net.nz> X-Google-Sender-Auth: cd9948782feb8d28 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Dec 2008 03:50:18 -0500 X-Mailman-Approved-At: Fri, 05 Dec 2008 05:33:02 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22972 Archived-At: ------=_Part_14161_10767713.1228465915371 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear Nick, M-x gud-gdb does not work at all. This is the error I get: call-interactively: Autoloading failed to define function gud-gdb Yes I agree this shouldn't be considered a bug. However I imagine it should be relatively easy to fix since idb provides a gdb compatibility mode (see the -gdb flag in the debugger command) and would make many users happy. I may try to learn some lisp and look into this problem myself although revision 1.136 has everything I need. Thanks a lot Alfredo On Fri, Dec 5, 2008 at 7:04 AM, Nick Roberts wrote: > Chong Yidong writes: > > > I just recompiled emacs (latest version from CVS) but I noticed that > > > gud.el is not working anymore when used in combination with the intel > > > idb debugger. After "M-x gdb" I provide the debugger command "idb > > > -gdb -fullname myexe" (as reported on the idb manual) and the main gud > > > window is loaded. At this point, whatever I do gud just hangs. > > > > I don't have idb available, so I can only try to guess what went wrong. > > First of all, does anything change if you change the variable > > gud-gdb-command-name from "gdb --fullname" to "gdb --annotate=3"? > > This isn't really an Emacs bug as gud.el wasn't designed for idb, but > `M-x gud-gdb' gives the old functionality that you probably want. > > -- > Nick > http://www.inet.net.nz/~nickrob > -- ----------------------------------------- Alfredo Buttari, PhD CNRS-IRIT 2 rue Camichel, 31071 Toulouse, France http://alfredobuttari.wordpress.com ------=_Part_14161_10767713.1228465915371 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear Nick,
M-x gud-gdb does not work at all. This is the error I get:

call-interactively: Autoloading failed to define function gud-gdb

Yes I agree this shouldn't be considered a bug. However I imagine it should be relatively easy to fix since idb provides a gdb compatibility mode (see the -gdb flag in the debugger command) and would make many users happy. I may try to learn some lisp and look into this problem myself although revision 1.136 has everything I need.
Thanks a lot

Alfredo



On Fri, Dec 5, 2008 at 7:04 AM, Nick Roberts <nickrob@snap.net.nz> wrote:
Chong Yidong writes:
 > > I just recompiled emacs (latest version from CVS) but I noticed that
 > > gud.el is not working anymore when used in combination with the intel
 > > idb debugger.  After "M-x gdb" I provide the debugger command "idb
 > > -gdb -fullname myexe" (as reported on the idb manual) and the main gud
 > > window is loaded. At this point, whatever I do gud just hangs.
 >
 > I don't have idb available, so I can only try to guess what went wrong.
 > First of all, does anything change if you change the variable
 > gud-gdb-command-name from "gdb --fullname" to "gdb --annotate=3"?

This isn't really an Emacs bug as gud.el wasn't designed for idb, but
`M-x gud-gdb' gives the old functionality that you probably want.

--
Nick                                           http://www.inet.net.nz/~nickrob



--
-----------------------------------------
Alfredo Buttari, PhD
CNRS-IRIT
2 rue Camichel, 31071 Toulouse, France
http://alfredobuttari.wordpress.com
------=_Part_14161_10767713.1228465915371--