aboutsummaryrefslogtreecommitdiff
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)
downloadgdb-64fd8944d9be130ed43e5645a392756e754c616a.zip
gdb-64fd8944d9be130ed43e5645a392756e754c616a.tar.gz
gdb-64fd8944d9be130ed43e5645a392756e754c616a.tar.bz2
(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 d38d674..7b311a3 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;
+}