From: Nick Roberts Date: Sun, 19 Jun 2005 03:11:47 +0000 (+0000) Subject: (mi_cmd_stack_info_frame): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64fd8944d9be130ed43e5645a392756e754c616a;p=binutils-gdb.git (mi_cmd_stack_info_frame): New function. --- diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index d38d674571e..7b311a35bfb 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; +}