diff options
Diffstat (limited to 'gdb/debug.c')
-rw-r--r-- | gdb/debug.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/debug.c b/gdb/debug.c index 548b291..f845a7e 100644 --- a/gdb/debug.c +++ b/gdb/debug.c @@ -19,6 +19,8 @@ #include "defs.h" +#include "debug.h" + /* See gdbsupport/common-debug.h. */ void @@ -26,3 +28,14 @@ debug_vprintf (const char *fmt, va_list ap) { vfprintf_unfiltered (gdb_stdlog, fmt, ap); } + +/* See debug.h. */ + +void +debug_prefixed_vprintf (const char *module, const char *func, const char *format, + va_list args) +{ + debug_printf ("[%s] %s: ", module, func); + debug_vprintf (format, args); + debug_printf ("\n"); +} |