gdbsupport, gdb: give names to observers
[deliverable/binutils-gdb.git] / gdbsupport / common-debug.cc
index 0d3e9198921c1e7697528037fc122e3125df75ed..39474c2c8603aea30573778375e49b10f0f2c46f 100644 (file)
@@ -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");
 }
This page took 0.022754 seconds and 4 git commands to generate.