gdb: make breakpoint_debug_printf global

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.
This commit is contained in:
Andrew Burgess
2023-12-28 22:51:22 +00:00
parent 26d23d8e02
commit 4764e22161
2 changed files with 10 additions and 7 deletions

View File

@@ -574,13 +574,8 @@ show_always_inserted_mode (struct ui_file *file, int from_tty,
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