From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lluís <xscript@gmx.net>
Cc: Tom Tromey <tromey@redhat.com>,
David Reitter <david.reitter@gmail.com>,
"emacs-devel@gnu.org devel" <emacs-devel@gnu.org>
Subject: Re: Gdb in emacs 24
Date: Fri, 21 Oct 2011 13:20:46 -0400 [thread overview]
Message-ID: <jwvfwimfen2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87aa8vbq3k.fsf@ginnungagap.bsc.es> ("Lluís"'s message of "Thu, 20 Oct 2011 18:11:11 +0200")
> Right, both were assuming the use of the "interpreter-exec" command.
Makes sense. But as I said, I think for 24.1, it's too late to make
this change.
> I've been looking into it, and just starting gdb should be enough to know if
> we're under GDB/MI. The possible cases I've looked into are:
> * console
> * console + annotate
> * mi
> * tui
> GDB/MI gives us a unique greeting format:
> =thread-group-added,id="i1"
> ~"GNU gdb (GDB) 7.3-debian\n"
> ....
> (gdb)
> What I've done is use a new gud marker filter during initialization
> (gud-common-init) to establish whether the correct interpreter is being
> used. After that check, the original filter (gud-gdbmi-marker-filter) is used.
Sounds great. It could even be used to automatically fall back on the
gud-gdb code if the user used --fullname.
> The problem is that my poor elisp knowledge isn't enough to find a way to
> communicate the result back into the main emacs process (as the filter seems to
> be running on a separate process, I'm unable to simply set a variable to tell
> whether the test is ok).
> Any hints on how to communicate the result back to the 'gdb' function?
You have access to the process object, so you can change the
process-filter, or you can set a process property (via process-put).
Stefan
next prev parent reply other threads:[~2011-10-21 17:20 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 8:07 Gdb in emacs 24 Andrea Crotti
2011-03-08 8:56 ` Eli Zaretskii
2011-10-05 21:55 ` David Reitter
2011-10-06 5:52 ` Eli Zaretskii
2011-10-06 10:45 ` David Reitter
2011-10-06 11:25 ` Eli Zaretskii
2011-10-06 13:37 ` David Reitter
2011-10-06 14:55 ` Chong Yidong
2011-10-06 18:07 ` Eli Zaretskii
2011-10-06 20:00 ` David Reitter
2011-10-06 20:07 ` Stephen J. Turnbull
2011-10-06 20:45 ` Eli Zaretskii
2011-10-07 6:08 ` Stephen J. Turnbull
2011-10-07 12:28 ` Eli Zaretskii
2011-10-06 12:40 ` Stefan Monnier
2011-10-19 1:48 ` Tom Tromey
2011-10-19 13:10 ` Lluís
2011-10-19 13:38 ` Tom Tromey
2011-10-19 14:14 ` Lluís
2011-10-19 14:35 ` Stefan Monnier
2011-10-19 14:54 ` Tom Tromey
2011-10-19 17:54 ` Stefan Monnier
2011-10-19 18:55 ` Lluís
2011-10-19 21:22 ` Stefan Monnier
2011-10-20 16:11 ` Lluís
2011-10-21 17:20 ` Stefan Monnier [this message]
2011-10-23 19:47 ` Lluís
2011-10-28 2:25 ` Stefan Monnier
2011-10-19 15:42 ` Lluís
2011-03-09 22:23 ` Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2011-03-09 0:22 Nick Roberts
2011-03-09 14:20 ` Andrea Crotti
2011-03-10 13:50 Nick Roberts
2011-03-10 14:07 ` Andreas Schwab
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfwimfen2.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=tromey@redhat.com \
--cc=xscript@gmx.net \
/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 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).