This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: add macro commands
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- To: jimb at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 10 May 2002 10:14:18 +0300
- Subject: Re: RFA: add macro commands
- References: <20020509235822.DC4F95EA11@zwingli.cygnus.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> From: Jim Blandy <jimb@redhat.com>
> Date: Thu, 9 May 2002 18:58:22 -0500 (EST)
>
> + add_cmd
> + ("expand", no_class, macro_expand_command,
> + "Fully expand any C/C++ preprocessor macro invocations in EXPRESSION.\n"
> + "Show the expanded expression.",
> + ¯olist);
Do I understand correctly that this command definition, as well as
others you added in this patch, makes the command use the default
completion function? If so, I'm not sure that's a good idea, unless
the tables scanned by make_symbol_completion_list store macro names.
It would be nice to have completion only on macro names in these
commands. But if that cannot be done easily, at least let's disable
completion entirely until something appropriate is coded.