This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH: mi-cmd-file.c]
> > Actually Emacs turns tooltips off if there is no macro information in case
> > of something like:
> > #define STOP abort ()
> > and the mouse hovers over STOP. Macro information allows Emacs to ensure
> > that a macro doesn't expand to a function first.
> Hmm, that sounds silly. If there's no macro information, GDB won't be
> able to expand STOP to a function...
Yes, what I've said is silly, but hopefully what I've done isn't. When running
in the old mode, as for Emacs 21, Emacs can't tell if the macro expands to a
function, so turns off tooltips. In the new mode, it checks to see if the
macro expands to a function and if so, doesn't try to print its value (which
would call abort () in this case).