From ba98841943b085891eb4bf4debc3981ac95bb7fb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 2 Oct 2020 14:44:39 -0400 Subject: 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 --- gdb/debug.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'gdb/debug.c') diff --git a/gdb/debug.c b/gdb/debug.c index f845a7e3b1e..fe571aaae39 100644 --- a/gdb/debug.c +++ b/gdb/debug.c @@ -19,7 +19,7 @@ #include "defs.h" -#include "debug.h" +#include "gdbsupport/common-debug.h" /* See gdbsupport/common-debug.h. */ @@ -28,14 +28,3 @@ 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"); -} -- cgit v1.2.1