From: Lluís <xscript@gmx.net>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
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: Wed, 19 Oct 2011 20:55:39 +0200 [thread overview]
Message-ID: <87lisgizf8.fsf@ginnungagap.bsc.es> (raw)
In-Reply-To: <jwvsjmoj2bo.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 19 Oct 2011 13:54:56 -0400")
Stefan Monnier writes:
Stefan> How 'bout some way to just check whether `mi' is the
Stefan> current interpreter. It doesn't have to be a dedicated command, just
Stefan> a command which will reliably behave differently (e.g. return some
Stefan> recognizable value if `mi' is used, and return an error if not).
>> Pretty much any MI command will do that, e.g., "-list-features".
> Then could someone patch gdb-mi.el to use this as a test and send
> a clear error message to the user about the need for "-i=mi"?
> I think it's too late to use "interpreter exec" for 24.1, but such
> a test would at least address some of the bug reports I've seen where
> users had used "--annotate=3".
As I said, if the use of annotate is the only problem, it can be disabled with a
simple gdb command just after gdb-mi.el starts gdb:
set annotate 0
This trivial change should address all the bugs you referred to.
The use of "interpreter-exec" is just to make sure commands go through MI even
if the user omits the "-i=mi" argument.
Then the check you say is just to cover the case of the user starting gdb with
"-i=tui", which will probably never happen.
Lluis
--
"And it's much the same thing with knowledge, for whenever you learn
something new, the whole world becomes that much richer."
-- The Princess of Pure Reason, as told by Norton Juster in The Phantom
Tollbooth
next prev parent reply other threads:[~2011-10-19 18:55 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 [this message]
2011-10-19 21:22 ` Stefan Monnier
2011-10-20 16:11 ` Lluís
2011-10-21 17:20 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lisgizf8.fsf@ginnungagap.bsc.es \
--to=xscript@gmx.net \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
--cc=tromey@redhat.com \
/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.