[Top][All Lists]

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

Re: Gdb in emacs 24

From: Lluís
Subject: Re: Gdb in emacs 24
Date: Wed, 19 Oct 2011 20:55:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

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.


 "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

reply via email to

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