From 23916b7dc0f2f05982da7a76726d931cf738d2cc Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Wed, 30 Sep 2015 14:23:12 -0700 Subject: Initial publication of breakpoint reset project. This is a work-in-progress publication of an intelligent breakpoint_re_set redesign. See the project wiki page for more information: https://sourceware.org/gdb/wiki/BreakpointReset --- gdb/ada-lang.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index a229fa1..fd712fe 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -12248,11 +12248,13 @@ allocate_location_exception (enum ada_exception_catchpoint_kind ex, static void re_set_exception (enum ada_exception_catchpoint_kind ex, struct breakpoint *b) { + struct breakpoint_reset_reason reset_reason; struct ada_catchpoint *c = (struct ada_catchpoint *) b; /* Call the base class's method. This updates the catchpoint's locations. */ - bkpt_breakpoint_ops.re_set (b); + init_breakpoint_reset_reason (&reset_reason); + bkpt_breakpoint_ops.re_set (b, &reset_reason); /* Reparse the exception conditional expressions. One for each location. */ @@ -12522,7 +12524,8 @@ allocate_location_catch_exception (struct breakpoint *self) } static void -re_set_catch_exception (struct breakpoint *b) +re_set_catch_exception (struct breakpoint *b, + struct breakpoint_reset_reason *reason) { re_set_exception (ada_catch_exception, b); } @@ -12574,7 +12577,8 @@ allocate_location_catch_exception_unhandled (struct breakpoint *self) } static void -re_set_catch_exception_unhandled (struct breakpoint *b) +re_set_catch_exception_unhandled (struct breakpoint *b, + struct breakpoint_reset_reason *reason) { re_set_exception (ada_catch_exception_unhandled, b); } @@ -12628,7 +12632,8 @@ allocate_location_catch_assert (struct breakpoint *self) } static void -re_set_catch_assert (struct breakpoint *b) +re_set_catch_assert (struct breakpoint *b, + struct breakpoint_reset_reason *reason) { re_set_exception (ada_catch_assert, b); } -- cgit v1.1