(mi_cmd_stack_info_frame): New function.
authorNick Roberts <nickrob@snap.net.nz>
Sun, 19 Jun 2005 03:11:47 +0000 (03:11 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 19 Jun 2005 03:11:47 +0000 (03:11 +0000)
gdb/mi/mi-cmd-stack.c

index d38d674571e8b5023437a246a20b0d79b08b7ac1..7b311a35bfb9dd50164b502ae5db6a746b4ac14c 100644 (file)
@@ -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;
+}