summaryrefslogtreecommitdiffstats
path: root/gdb/mi/mi-cmd-stack.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2005-06-19 03:11:47 +0000
committerNick Roberts <nickrob@snap.net.nz>2005-06-19 03:11:47 +0000
commit64fd8944d9be130ed43e5645a392756e754c616a (patch)
tree836ebb95923a8646b1efa20ec74b7fb85cf8a9b7 /gdb/mi/mi-cmd-stack.c
parent7fcae197ab95aa5199094048e514f6a0a5b1f52b (diff)
downloadppe42-binutils-64fd8944d9be130ed43e5645a392756e754c616a.tar.gz
ppe42-binutils-64fd8944d9be130ed43e5645a392756e754c616a.zip
(mi_cmd_stack_info_frame): New function.
Diffstat (limited to 'gdb/mi/mi-cmd-stack.c')
-rw-r--r--gdb/mi/mi-cmd-stack.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index d38d674571..7b311a35bf 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -329,3 +329,13 @@ mi_cmd_stack_select_frame (char *command, char **argv, int argc)
select_frame_command (argv[0], 1 /* not used */ );
return MI_CMD_DONE;
}
+
+enum mi_cmd_result
+mi_cmd_stack_info_frame (char *command, char **argv, int argc)
+{
+ if (argc > 0)
+ error (_("mi_cmd_stack_info_frame: No arguments required"));
+
+ print_frame_info (get_selected_frame (NULL), 1, LOC_AND_ADDRESS, 0);
+ return MI_CMD_DONE;
+}
OpenPOWER on IntegriCloud