unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1489: gud.el not working with idb
@ 2008-12-04 10:51 Alfredo Buttari
  0 siblings, 0 replies; 7+ messages in thread
From: Alfredo Buttari @ 2008-12-04 10:51 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

Hello,
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. For example if I type "r" to run the
executable, gud gets stuck like this:

Current directory is ~/
Intel(R) Debugger for applications running on IA-32, Version 10.1-32 , Build
20070828
------------------
object file name: ciao
Reading symbols from /home/abuttari/ciao...done.
(idb) r



This used to work perfectly until some time ago.

Not being an expert lisp programmer, I just tried to go back in the gud.el
history until I found a revision that works. So in the main branch the
problem is between revision 1.136 (working) and 1.137 (not working).
Revision 1.137 was committed by developer "miles".
Could you please fix this?

Thanks a lot

Alfredo Buttari


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

[-- Attachment #2: Type: text/html, Size: 1355 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
@ 2008-12-05  4:20 Chong Yidong
  2008-12-05  6:04 ` Nick Roberts
  2008-12-05  6:59 ` Alfredo Buttari
  0 siblings, 2 replies; 7+ messages in thread
From: Chong Yidong @ 2008-12-05  4:20 UTC (permalink / raw)
  To: Alfredo Buttari; +Cc: 1489

> 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"?






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
  2008-12-05  4:20 Chong Yidong
@ 2008-12-05  6:04 ` Nick Roberts
  2008-12-05  8:31   ` Alfredo Buttari
  2008-12-05  6:59 ` Alfredo Buttari
  1 sibling, 1 reply; 7+ messages in thread
From: Nick Roberts @ 2008-12-05  6:04 UTC (permalink / raw)
  To: Chong Yidong, 1489; +Cc: Alfredo Buttari

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






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
  2008-12-05  4:20 Chong Yidong
  2008-12-05  6:04 ` Nick Roberts
@ 2008-12-05  6:59 ` Alfredo Buttari
  1 sibling, 0 replies; 7+ messages in thread
From: Alfredo Buttari @ 2008-12-05  6:59 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 1489

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

Dear Chong,
thanks for taking the time to rspond my question. No, unfortunately it
doesn't change anything and I would be surprised if it did (please correct
me if I'm wrong) since I don't use the default gdb command but

idb -gdb -fullname

Thanks again

Alfredo


On Fri, Dec 5, 2008 at 5:20 AM, Chong Yidong <cyd@stupidchicken.com> wrote:

>
> 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"?




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

[-- Attachment #2: Type: text/html, Size: 1118 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
  2008-12-05  6:04 ` Nick Roberts
@ 2008-12-05  8:31   ` Alfredo Buttari
  2008-12-05 15:56     ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Alfredo Buttari @ 2008-12-05  8:31 UTC (permalink / raw)
  To: Nick Roberts; +Cc: 1489, Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

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 <http://www.inet.net.nz/%7Enickrob>
>



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

[-- Attachment #2: Type: text/html, Size: 2332 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
  2008-12-05  8:31   ` Alfredo Buttari
@ 2008-12-05 15:56     ` Stefan Monnier
  2008-12-05 16:18       ` Alfredo Buttari
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2008-12-05 15:56 UTC (permalink / raw)
  To: Alfredo Buttari; +Cc: 1489, Chong Yidong

> M-x gud-gdb does not work at all. This is the error I get:
> call-interactively: Autoloading failed to define function gud-gdb

This error looks very suspect.
Could it be that you have an old gud.el lying around in your load-path?


        Stefan






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#1489: gud.el not working with idb
  2008-12-05 15:56     ` Stefan Monnier
@ 2008-12-05 16:18       ` Alfredo Buttari
  0 siblings, 0 replies; 7+ messages in thread
From: Alfredo Buttari @ 2008-12-05 16:18 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 1489, Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

yes yes my fault. I've tried so many versions that some ended up in my
load-path and was not properly removed.
Thanks a lot

On Fri, Dec 5, 2008 at 4:56 PM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:

>
> This error looks very suspect.
> Could it be that you have an old gud.el lying around in your load-path?
>
>


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

[-- Attachment #2: Type: text/html, Size: 893 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-05 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 10:51 bug#1489: gud.el not working with idb Alfredo Buttari
  -- strict thread matches above, loose matches on Subject: below --
2008-12-05  4:20 Chong Yidong
2008-12-05  6:04 ` Nick Roberts
2008-12-05  8:31   ` Alfredo Buttari
2008-12-05 15:56     ` Stefan Monnier
2008-12-05 16:18       ` Alfredo Buttari
2008-12-05  6:59 ` Alfredo Buttari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).