aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmds.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-09-19 09:59:29 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-09-19 09:59:29 +0000
commitdaf3c9776f0c101dea753d0011ac5c7ca2caf665 (patch)
tree586672edd26d68c87c57b6ded505daa5107729d9 /gdb/mi/mi-cmds.c
parent3145548fd3b5f2267576ef362280f5c89351728a (diff)
downloadgdb-daf3c9776f0c101dea753d0011ac5c7ca2caf665.zip
gdb-daf3c9776f0c101dea753d0011ac5c7ca2caf665.tar.gz
gdb-daf3c9776f0c101dea753d0011ac5c7ca2caf665.tar.bz2
* mi/mi-cmds.h (mi_cmd_stack_list_variables): Declare.
* mi/mi-cmds.c (mi_cmds): Register -stack-list-variables. * mi/mi-cmd-stack.c (enum what_to_list): New. (list_args_or_locals): Accept what_to_list parameter. Use 'variables' as output name of all are requested. (mi_cmd_stack_list_variables): New. (mi_cmd_stack_list_locals, mi_cmd_stack_list_args): Adjust.
Diffstat (limited to 'gdb/mi/mi-cmds.c')
-rw-r--r--gdb/mi/mi-cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index 8ba086c..2c425b7 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -89,6 +89,7 @@ struct mi_cmd mi_cmds[] =
{ "stack-list-arguments", { NULL, 0 }, mi_cmd_stack_list_args},
{ "stack-list-frames", { NULL, 0 }, mi_cmd_stack_list_frames},
{ "stack-list-locals", { NULL, 0 }, mi_cmd_stack_list_locals},
+ { "stack-list-variables", { NULL, 0 }, mi_cmd_stack_list_variables},
{ "stack-select-frame", { NULL, 0 }, mi_cmd_stack_select_frame},
{ "symbol-list-lines", { NULL, 0 }, mi_cmd_symbol_list_lines},
{ "target-attach", { "attach", 1 }, NULL },