all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juan Rafael García Blanco" <jrblanco@gmv.com>
To: Eli Zaretskii <eliz@gnu.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: GUD GDB integration
Date: Thu, 24 May 2018 06:05:04 +0000	[thread overview]
Message-ID: <961A8B2D633A304F92BD712DF06B04DFB227EB66@PTMMAILBOX2.gmv.es> (raw)
In-Reply-To: <83fu2icr3v.fsf@gnu.org>


> -----Original Message-----
> From: help-gnu-emacs [mailto:help-gnu-emacs-
> bounces+jrblanco=gmv.com@gnu.org] On Behalf Of Eli Zaretskii
> Sent: Wednesday, May 23, 2018 5:46 PM
> To: help-gnu-emacs@gnu.org
> Subject: Re: GUD GDB integration
>
> > 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.
>
Thank you. I did not know about annotations.

> > 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?
>
Well, actually, gdb's guile/python interface would invoke Emacs back when
hitting a breakpoint, exception, ... I think it is a way to handle gdb events
synchronously, instead of reading and parsing gdb's output; but that would
require a connection from the guile part back to Emacs.

> > 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.
Thank you very much. I will look into that implementation. Thanks.

P Please consider the environment before printing this e-mail.

______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

______________________




  reply	other threads:[~2018-05-24  6:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-23  8:23 GUD GDB integration Juan Rafael García Blanco
2018-05-23 15:46 ` Eli Zaretskii
2018-05-24  6:05   ` Juan Rafael García Blanco [this message]
2018-05-24 15:16     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=961A8B2D633A304F92BD712DF06B04DFB227EB66@PTMMAILBOX2.gmv.es \
    --to=jrblanco@gmv.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.