This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove init_cli_cmds


On 7/11/19 4:31 PM, Tom Tromey wrote:
> I noticed that init_cli_cmds only installs a command, and so doesn't
> need to be handled specially.  This patch merges it into
> _initialize_cli_cmds.
> 
> The help text is constructed dynamically, which is sometimes an
> indication that special treatment is needed; but in this case it is
> just to insert the value of "gdbinit", which is created at
> compile-time and not modified; so this doesn't affect the result.

I wonder why we have a gdbinit variable at all, instead of using
the GDBINIT macro directly.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]