Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Frysinger <vapier@gentoo.org>2011-04-15 07:43:45 +0400
committerMichael Frysinger <vapier@gentoo.org>2011-04-15 07:43:45 +0400
commitb909b457d0329d1a9e1564fe88ac916142e250e8 (patch)
tree69af147d47d1632bd1da6994f088b4d46c768545 /include/gdb
parentcc00d3deb995a1db4f513b2c02bc9d10b9624310 (diff)
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')
-rw-r--r--include/gdb/ChangeLog4
-rw-r--r--include/gdb/remote-sim.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index 8b31e1147..dabaa5b19 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-04-14 Mike Frysinger <vapier@gentoo.org>
+
+ * remote-sim.h (sim_complete_command): New prototype.
+
2011-03-05 Mike Frysinger <vapier@gentoo.org>
* sim-bfin.h: New file.
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index a171cfda5..5f6000d83 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