aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-01-13 16:25:16 -0700
committerTom Tromey <tom@tromey.com>2022-04-29 16:14:30 -0600
commit2f9ee862bca8e9c8548a6b17927b64c249fb25d4 (patch)
tree1c8c9b0a2c3cc9c4679085f3e59eafd01162051d /gdb/breakpoint.h
parent835e063d3a0d08a85862e3cdf217773f524cd006 (diff)
downloadfsf-binutils-gdb-2f9ee862bca8e9c8548a6b17927b64c249fb25d4.zip
fsf-binutils-gdb-2f9ee862bca8e9c8548a6b17927b64c249fb25d4.tar.gz
fsf-binutils-gdb-2f9ee862bca8e9c8548a6b17927b64c249fb25d4.tar.bz2
Move "catch load" to a new file
The "catch load" code is reasonably self-contained, and so this patch moves it out of breakpoint.c and into a new file, break-catch-load.c. One function from breakpoint.c, print_solib_event, now has to be exposed, but this seems pretty reasonable.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index e412c4d..e71f93b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1803,4 +1803,10 @@ extern void catch_exception_event (enum exception_event_kind ex_event,
const char *regex, bool tempflag,
int from_tty);
+/* A helper function that prints a shared library stopped event.
+ IS_CATCHPOINT is true if the event is due to a "catch load"
+ catchpoint, false otherwise. */
+
+extern void print_solib_event (int is_catchpoint);
+
#endif /* !defined (BREAKPOINT_H) */