diff options
Diffstat (limited to 'gdbsupport/common-debug.cc')
-rw-r--r-- | gdbsupport/common-debug.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbsupport/common-debug.cc b/gdbsupport/common-debug.cc index 0d3e9198921..39474c2c860 100644 --- a/gdbsupport/common-debug.cc +++ b/gdbsupport/common-debug.cc @@ -55,7 +55,11 @@ void debug_prefixed_vprintf (const char *module, const char *func, const char *format, va_list args) { - debug_printf ("%*s[%s] %s: ", debug_print_depth * 2, "", module, func); + if (func != nullptr) + debug_printf ("%*s[%s] %s: ", debug_print_depth * 2, "", module, func); + else + debug_printf ("%*s[%s] ", debug_print_depth * 2, "", module); + debug_vprintf (format, args); debug_printf ("\n"); } |