mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb: move debug_prefixed_vprintf here
The following patch needs to output debug prints from gdbsupport code. Move debug_prefixed_vprintf so that it is possible to use it from gdbsupport. gdb/ChangeLog: * debug.c (debug_prefixed_vprintf): Move to gdbsupport. * debug.h: Remove. * infrun.c: Include gdbsupport/common-debug.h. * linux-nat.c: Likewise. gdbsupport/ChangeLog: * common-debug.cc (debug_prefixed_vprintf): Move here. * common-debug.h (debug_prefixed_vprintf): Move here. Change-Id: I5170065fc10a7a49c0f1bba67c691decb2cf3bcb
This commit is contained in:
committed by
Simon Marchi
parent
db20ebdfae
commit
ba98841943
@@ -35,3 +35,14 @@ debug_printf (const char *fmt, ...)
|
||||
debug_vprintf (fmt, ap);
|
||||
va_end (ap);
|
||||
}
|
||||
|
||||
/* See gdbsupport/common-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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user