From 2f9ee862bca8e9c8548a6b17927b64c249fb25d4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 13 Jan 2022 16:25:16 -0700 Subject: 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. --- gdb/breakpoint.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/breakpoint.h') 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) */ -- cgit v1.1