aboutsummaryrefslogtreecommitdiff
path: root/include/gdb/remote-sim.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-15 03:43:46 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-15 03:43:46 +0000
commit56a9aa1d10f5ddb8a1f77e0de0d3c5ef48cdb848 (patch)
tree2f44e50558e49317220f7632d11dabbf21f50815 /include/gdb/remote-sim.h
parentd2cfa400a11c869dd79f945fca68d62fdb85dd32 (diff)
downloadfsf-binutils-gdb-56a9aa1d10f5ddb8a1f77e0de0d3c5ef48cdb848.zip
fsf-binutils-gdb-56a9aa1d10f5ddb8a1f77e0de0d3c5ef48cdb848.tar.gz
fsf-binutils-gdb-56a9aa1d10f5ddb8a1f77e0de0d3c5ef48cdb848.tar.bz2
gdb: sim: add command line completion
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>
Diffstat (limited to 'include/gdb/remote-sim.h')
-rw-r--r--include/gdb/remote-sim.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index a171cfd..5f6000d 100644
--- a/include/gdb/remote-sim.h
+++ b/include/gdb/remote-sim.h
@@ -276,6 +276,10 @@ void sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc);
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
}
#endif