This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH: mi-cmd-file.c]
On Wed, Jan 30, 2008 at 02:49:09PM +1300, Nick Roberts wrote:
> > > 2008-01-10 Nick Roberts <nickrob@snap.net.nz>
> > >
> > > * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
> > > for preprocessor macro information.
> >
> > Needs a manual update, of course. Otherwise looks OK to me.
> >
> > GUD uses this to avoid expanding macros if it knows they are not
> > available, right?
>
> 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...
> I've committed it with the formatting changes below as obvious.
OK - be sure to do the manual update.
--
Daniel Jacobowitz
CodeSourcery