summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/mi/ChangeLog6
-rw-r--r--gdb/mi/mi-cmd-break.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index 9d3dd9f0876..f87fe1c5168 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,5 +1,11 @@
2002-11-04 Elena Zannoni <ezannoni@redhat.com>
+ * mi-cmd-break.c (mi_cmd_break_insert): Initialize old_hooks.
+ (mi_cmd_break_insert, mi_cmd_break_watch, mi_cmd_break_insert):
+ Increment MI version number.
+
+2002-11-04 Elena Zannoni <ezannoni@redhat.com>
+
* mi-interp.c: Increment mi version numbers: 0->1, 1->2,
and 2->3. Remove MI0 references.
* mi-events.c: Ditto.
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index 470b641df51..f578a67013d 100644
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -79,7 +79,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
int ignore_count = 0;
char *condition = NULL;
enum gdb_rc rc;
- struct gdb_events *old_hooks;
+ struct gdb_events *old_hooks = NULL;
enum opt
{
HARDWARE_OPT, TEMP_OPT /*, REGEXP_OPT */ , CONDITION_OPT,
@@ -139,9 +139,9 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
allows us to capture the breakpoint information as the breakpoint
is created. Unfortunately, it also overrides any existing event
handlers, so we won't get any event notifications sent out to the
- client. MI2+ does NOT send breakpoint information with the -break-insert
+ client. MI3+ does NOT send breakpoint information with the -break-insert
command for this reason. */
- if (gdb_current_interpreter_is_named (GDB_INTERPRETER_MI0)
+ if (gdb_current_interpreter_is_named (GDB_INTERPRETER_MI2)
|| gdb_current_interpreter_is_named (GDB_INTERPRETER_MI1))
old_hooks = set_gdb_event_hooks (&breakpoint_hooks);
@@ -172,7 +172,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
"mi_cmd_break_insert: Bad switch.");
}
- if (gdb_current_interpreter_is_named (GDB_INTERPRETER_MI0)
+ if (gdb_current_interpreter_is_named (GDB_INTERPRETER_MI2)
|| gdb_current_interpreter_is_named (GDB_INTERPRETER_MI1))
set_gdb_event_hooks (old_hooks);
@@ -253,10 +253,10 @@ mi_cmd_break_watch (char *command, char **argv, int argc)
/* Ugh. This is a hack. mention and print_one_breakpoint in
breakpoint.c are so overloaded, that watchpoints and breakpoints
- cannot use the same printing mechanisms. So for MI2+, we simply
+ cannot use the same printing mechanisms. So for MI3+, we simply
rewind MI's uiout so that we can prevent GDB from printing
any information about the watchpoint we just inserted. */
- if (!gdb_current_interpreter_is_named (GDB_INTERPRETER_MI0)
+ if (!gdb_current_interpreter_is_named (GDB_INTERPRETER_MI2)
&& !gdb_current_interpreter_is_named (GDB_INTERPRETER_MI1))
mi_out_rewind (uiout);