projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08d436
)
monitor: Add completion for help command
author
Jan Kiszka
<jan.kiszka@web.de>
Thu, 25 Jun 2009 06:22:02 +0000
(08:22 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 29 Jun 2009 19:18:08 +0000
(14:18 -0500)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index
7fdd3a0
..
0878c36
100644
(file)
--- a/
monitor.c
+++ b/
monitor.c
@@
-2921,6
+2921,11
@@
static void monitor_find_completion(const char *cmdline)
for(key = key_defs; key->name != NULL; key++) {
cmd_completion(str, key->name);
}
+ } else if (!strcmp(cmd->name, "help|?")) {
+ readline_set_completion_index(cur_mon->rs, strlen(str));
+ for (cmd = mon_cmds; cmd->name != NULL; cmd++) {
+ cmd_completion(str, cmd->name);
+ }
}
break;
default: