This commit makes breakpoint_debug_printf available outside of
breakpoint.c. In a later commit I'll want to use this macro from
another file.
This is just a refactor, there should be no user visible changes after
this commit.
value);
}
-/* True if breakpoint debug output is enabled. */
-static bool debug_breakpoint = false;
-
-/* Print a "breakpoint" debug statement. */
-#define breakpoint_debug_printf(fmt, ...) \
- debug_prefixed_printf_cond (debug_breakpoint, "breakpoint", fmt, \
- ##__VA_ARGS__)
+/* See breakpoint.h. */
+bool debug_breakpoint = false;
/* "show debug breakpoint" implementation. */
static void
struct linespec_sals;
struct inferior;
+/* True if breakpoint debug output is enabled. */
+extern bool debug_breakpoint;
+
+/* Print a "breakpoint" debug statement. */
+#define breakpoint_debug_printf(fmt, ...) \
+ debug_prefixed_printf_cond (debug_breakpoint, "breakpoint", fmt, \
+ ##__VA_ARGS__)
+
/* Enum for exception-handling support in 'catch throw', 'catch rethrow',
'catch catch' and the MI equivalent. */