mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 03:41:58 +08:00
src/inferior.c: Include completer.h
(initialize_inferiors): Set completer of add-inferior to filename_completer.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-05-12 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* inferior.c: Include completer.h
|
||||||
|
(initialize_inferiors): Set completer of add-inferior to
|
||||||
|
filename_completer.
|
||||||
|
|
||||||
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
|
* amd64-linux-tdep.c (amd64_linux_core_read_description): Check
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "inferior.h"
|
#include "inferior.h"
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
#include "completer.h"
|
||||||
#include "gdbcmd.h"
|
#include "gdbcmd.h"
|
||||||
#include "gdbthread.h"
|
#include "gdbthread.h"
|
||||||
#include "ui-out.h"
|
#include "ui-out.h"
|
||||||
@ -1056,6 +1057,8 @@ inferior_data (struct inferior *inf, const struct inferior_data *data)
|
|||||||
void
|
void
|
||||||
initialize_inferiors (void)
|
initialize_inferiors (void)
|
||||||
{
|
{
|
||||||
|
struct cmd_list_element *c = NULL;
|
||||||
|
|
||||||
/* There's always one inferior. Note that this function isn't an
|
/* There's always one inferior. Note that this function isn't an
|
||||||
automatic _initialize_foo function, since other _initialize_foo
|
automatic _initialize_foo function, since other _initialize_foo
|
||||||
routines may need to install their per-inferior data keys. We
|
routines may need to install their per-inferior data keys. We
|
||||||
@ -1069,12 +1072,13 @@ initialize_inferiors (void)
|
|||||||
add_info ("inferiors", info_inferiors_command,
|
add_info ("inferiors", info_inferiors_command,
|
||||||
_("IDs of specified inferiors (all inferiors if no argument)."));
|
_("IDs of specified inferiors (all inferiors if no argument)."));
|
||||||
|
|
||||||
add_com ("add-inferior", no_class, add_inferior_command, _("\
|
c = add_com ("add-inferior", no_class, add_inferior_command, _("\
|
||||||
Add a new inferior.\n\
|
Add a new inferior.\n\
|
||||||
Usage: add-inferior [-copies <N>] [-exec <FILENAME>]\n\
|
Usage: add-inferior [-copies <N>] [-exec <FILENAME>]\n\
|
||||||
N is the optional number of inferiors to add, default is 1.\n\
|
N is the optional number of inferiors to add, default is 1.\n\
|
||||||
FILENAME is the file name of the executable to use\n\
|
FILENAME is the file name of the executable to use\n\
|
||||||
as main program."));
|
as main program."));
|
||||||
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("remove-inferiors", no_class, remove_inferior_command, _("\
|
add_com ("remove-inferiors", no_class, remove_inferior_command, _("\
|
||||||
Remove inferior ID (or list of IDs).\n\
|
Remove inferior ID (or list of IDs).\n\
|
||||||
|
Reference in New Issue
Block a user