This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb: sim: add command line completion
On 15/04/11 04:20, Mike Frysinger wrote:
> For now, only the sub-command name is completed. No support yet for
> completing options to that command. But even this is a huge step as
> currently, nothing is completed, and the basic "help sim" is fairly
> obtuse as to what exactly the "sim" command accepts.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> gdb/:
> 2011-04-07 Mike Frysinger <vapier@gentoo.org>
>
> * remote-sim.c (sim_command_completer): New function.
> (_initialize_remote_sim): Set completer to sim_command_completer.
>
> include/gdb/:
> 2011-04-07 Mike Frysinger <vapier@gentoo.org>
>
> * remote-sim.h (sim_complete_command): New prototype.
>
> sim/:
> 2011-04-07 Mike Frysinger <vapier@gentoo.org>
>
> * sim-options.c (complete_option_list, sim_complete_command):
> New functions.
This breaks building gdb for arm-eabi.
/home/rearnsha/gnusrc/gcc-cross/git/gdb/remote-sim.c:1205: undefined
reference to `sim_complete_command'
Note the ARM simulator doesn't use most of the sim/common infrastructure.
R.