2008-03-17 Pedro Alves * top.c (command_line_handler_continuation): Wrap call to bpstat_do_actions in TRY_CATCH. --- gdb/top.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: src/gdb/top.c =================================================================== --- src.orig/gdb/top.c 2008-03-14 22:36:07.000000000 +0000 +++ src/gdb/top.c 2008-03-14 22:46:02.000000000 +0000 @@ -376,7 +376,12 @@ command_line_handler_continuation (struc long time_at_cmd_start = arg->data.longint; long space_at_cmd_start = arg->next->data.longint; - bpstat_do_actions (&stop_bpstat); + volatile struct gdb_exception exception; + TRY_CATCH (exception, RETURN_MASK_ALL) + { + /* Don't propagate errors to inferior_event_handler/INF_REG_EVENT. */ + bpstat_do_actions (&stop_bpstat); + } if (display_time) { @@ -539,7 +544,7 @@ execute_command (char *p, int from_tty) } } - /* Set things up for this function to be compete later, once the + /* Set things up for this function to be finished later, once the execution has completed, if we are doing an execution command, otherwise, just go ahead and finish. */ if (target_can_async_p () && target_executing)