aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/gdb/remote-sim.h1
-rw-r--r--sim/common/sim-options.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index 5f6000d..14a86a8 100644
--- a/include/gdb/remote-sim.h
+++ b/include/gdb/remote-sim.h
@@ -278,6 +278,7 @@ void sim_do_command (SIM_DESC sd, char *cmd);
/* Complete a command based on the available sim commands. Returns an
array of possible matches. */
+
char **sim_complete_command (SIM_DESC sd, char *text, char *word);
#ifdef __cplusplus
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index ee8a8ec..cfc572c 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -945,6 +945,7 @@ complete_option_list (char **ret, size_t *cnt, const struct option_list *ol,
/* All leading text is stored in @text, while the current word being
completed is stored in @word. Trailing text of @word is not. */
+
char **
sim_complete_command (SIM_DESC sd, char *text, char *word)
{