summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 23:04:17 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-11-05 23:04:17 +0000
commitefddd4d6196b01970865b11e353cd1b19e0f61fc (patch)
tree9299826ef01bc62ebf8fbb3c51ccb01f69ee01a3
parent15aa4b936e12f52bdd5fedd53828089fb50c3c75 (diff)
downloadbinutils-gdb-efddd4d6196b01970865b11e353cd1b19e0f61fc.tar.gz
2002-11-05 Elena Zannoni <ezannoni@redhat.com>kseitz_interps-20020528-branch
* mi-cmd-stack.c (mi_cmd_stack_select_frame): Remove stray statement. Remove include of gdb-events.h.
-rw-r--r--gdb/mi/ChangeLog5
-rw-r--r--gdb/mi/mi-cmd-stack.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index 7936774b2c6..0d184ccc971 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-05 Elena Zannoni <ezannoni@redhat.com>
+
+ * mi-cmd-stack.c (mi_cmd_stack_select_frame): Remove stray statement.
+ Remove include of gdb-events.h.
+
2002-11-04 Elena Zannoni <ezannoni@redhat.com>
* mi.h: Clean up interface, removing unnecessarily exported
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index a4cea3e9aae..74cb126af80 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -26,7 +26,6 @@
#include "mi-cmds.h"
#include "ui-out.h"
#include "symtab.h"
-#include "gdb-events.h"
/* FIXME: these should go in some .h file but stack.c doesn't have a
corresponding .h file. These wrappers will be obsolete anyway, once
@@ -301,8 +300,6 @@ list_args_or_locals (int locals, int values, struct frame_info *fi)
enum mi_cmd_result
mi_cmd_stack_select_frame (char *command, char **argv, int argc)
{
- int current_level = frame_relative_level (selected_frame);
-
if (!target_has_stack)
error ("mi_cmd_stack_select_frame: No stack.");
@@ -314,6 +311,5 @@ mi_cmd_stack_select_frame (char *command, char **argv, int argc)
select_frame_command_wrapper (0, 1 /* not used */ );
else
select_frame_command_wrapper (argv[0], 1 /* not used */ );
-
return MI_CMD_DONE;
}