mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08: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
@ -38,4 +38,10 @@ extern void debug_printf (const char *format, ...)
|
||||
extern void debug_vprintf (const char *format, va_list ap)
|
||||
ATTRIBUTE_PRINTF (1, 0);
|
||||
|
||||
/* Print a debug statement prefixed with the module and function name, and
|
||||
with a newline at the end. */
|
||||
|
||||
extern void ATTRIBUTE_PRINTF (3, 0) debug_prefixed_vprintf
|
||||
(const char *module, const char *func, const char *format, va_list args);
|
||||
|
||||
#endif /* COMMON_COMMON_DEBUG_H */
|
||||
|
Reference in New Issue
Block a user