From f06f1252b0b8ef20adb4296faaf8293c9d36f615 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 10 Jul 2019 11:05:20 -0600 Subject: Change Ada catchpoints to be bp_catchpoint Like Pedro's earlier patches to change catchpoint to be of type bp_catchpoint, this changes the Ada catchpoints to follow. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-07-10 Tom Tromey * ada-lang.h (is_ada_exception_catchpoint): Declare. * breakpoint.c (init_ada_exception_breakpoint): Register as bp_catchpoint. (print_one_breakpoint_location, print_one_breakpoint): Use is_ada_exception_catchpoint. * ada-lang.c (class ada_catchpoint_location): Pass bp_loc_software_breakpoint to bp_location constructor. (is_ada_exception_catchpoint): New function. gdb/testsuite/ChangeLog 2019-07-10 Tom Tromey * gdb.ada/mi_ex_cond.exp: Update expected results. * gdb.ada/mi_catch_ex_hand.exp: Update expected results. * gdb.ada/mi_catch_ex.exp: Update expected results. * gdb.ada/mi_catch_assert.exp: Update expected results. * gdb.ada/catch_ex.exp (catch_exception_info) (catch_exception_entry, catch_assert_entry) (catch_unhandled_entry): Update. * gdb.ada/catch_assert_if.exp: Update expected results. --- gdb/ada-lang.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/ada-lang.h') diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index 788f7a6..2fc3f52 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -378,6 +378,10 @@ extern void create_ada_exception_catchpoint const std::string &excep_string, const std::string &cond_string, int tempflag, int disabled, int from_tty); +/* Return true if BP is an Ada catchpoint. */ + +extern bool is_ada_exception_catchpoint (breakpoint *bp); + /* Some information about a given Ada exception. */ struct ada_exc_info -- cgit v1.1