help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUD GDB integration


From: Eli Zaretskii
Subject: Re: GUD GDB integration
Date: Wed, 23 May 2018 18:46:12 +0300

> From: Juan Rafael García Blanco <jrblanco@gmv.com>
> Date: Wed, 23 May 2018 08:23:04 +0000
> 
> I wanted to know how gud and gdb interact, i.e. by parsing gdb's output or 
> using gdb's built-in scripting engine. I have gone through gud.el and I 
> understand interaction is accomplished by parsing gdb's output. Could you 
> please confirm my understanding?

There are 2 interfaces: the old one in gud.el uses the CLI output with
annotations, the new one in gdb-mi.el uses the GDB/MI interface.

> If so, why is this approach better than writing event handlers using gdb's 
> scheme interpreter?

Not sure what you mean by that.  How would Emacs invoke the GDB's
Guile interface?

> The context for this question is that I'm writing a gdb client, not for 
> emacs, that somehow resembles what gud does. So I wanted to know what gud 
> does because it is widely used and it is known to work.

You can look in gdb-mi.el to see the code which uses GDB/MI.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]