aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-05-07 00:23:08 +0100
committerPedro Alves <pedro@palves.net>2022-05-20 20:41:01 +0100
commitbd21b6c9cf3e4a3fc78158ef288787dc572ce244 (patch)
treeac8f632f9a04447625ee49f10f493be8e7de0944 /gdb/breakpoint.h
parent8cd0bf5e7ef0a837969e39341a6d597f0eca3809 (diff)
downloadbinutils-bd21b6c9cf3e4a3fc78158ef288787dc572ce244.zip
binutils-bd21b6c9cf3e4a3fc78158ef288787dc572ce244.tar.gz
binutils-bd21b6c9cf3e4a3fc78158ef288787dc572ce244.tar.bz2
Convert init_ada_exception_catchpoint to a ctor
Currently, init_ada_exception_catchpoint is defined in breakpoint.c, I presume so it can call the static describe_other_breakpoints function. I think this is a dependency inversion. init_ada_exception_catchpoint, being code specific to Ada catchpoints, should be in ada-lang.c, and describe_other_breakpoints, a core function, should be exported. And then, we can convert init_ada_exception_catchpoint to an ada_catchpoint ctor. Change-Id: I07695572dabc5a75d3d3740fd9b95db1529406a1
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 40ba98b..a4ead8b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1460,17 +1460,6 @@ extern void
void *user_data_catch,
void *user_data_tcatch);
-/* Initialize a breakpoint struct for Ada exception catchpoints. */
-
-extern void
- init_ada_exception_breakpoint (struct breakpoint *b,
- struct gdbarch *gdbarch,
- struct symtab_and_line sal,
- const char *addr_string,
- int tempflag,
- int enabled,
- int from_tty);
-
/* Add breakpoint B on the breakpoint list, and notify the user, the
target and breakpoint_created observers of its existence. If
INTERNAL is non-zero, the breakpoint number will be allocated from
@@ -1905,4 +1894,12 @@ extern void catch_exception_event (enum exception_event_kind ex_event,
extern void print_solib_event (bool is_catchpoint);
+/* Print a message describing any user-breakpoints set at PC. This
+ concerns with logical breakpoints, so we match program spaces, not
+ address spaces. */
+
+extern void describe_other_breakpoints (struct gdbarch *,
+ struct program_space *, CORE_ADDR,
+ struct obj_section *, int);
+
#endif /* !defined (BREAKPOINT_H) */