From 5d4e2b767e44cee2c4c2ecff7e37c35376b94826 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 30 Oct 2009 17:34:53 +0000 Subject: Fix breakpoint commands in MI. * mi/mi-main.c (mi_execute_command): Run bpstat_do_actions. * mi/mi-cmd-break.c (mi_cmd_break_commands): Pass 1 to read_command_line_1 to actually parse composite commands. --- gdb/mi/mi-cmd-break.c | 2 +- gdb/mi/mi-main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 9ab8f2d..7b782bd 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -298,7 +298,7 @@ mi_cmd_break_commands (char *command, char **argv, int argc) mi_command_line_array_ptr = 1; mi_command_line_array_cnt = argc; - break_command = read_command_lines_1 (mi_read_next_line, 0); + break_command = read_command_lines_1 (mi_read_next_line, 1); breakpoint_set_commands (b, break_command); } diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index bfad98f..2332752 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1306,6 +1306,8 @@ mi_execute_command (char *cmd, int from_tty) mi_out_rewind (uiout); } + bpstat_do_actions (); + if (/* The notifications are only output when the top-level interpreter (specified on the command line) is MI. */ ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ())) -- cgit v1.1