/* Debug printing functions.
- Copyright (C) 2014-2020 Free Software Foundation, Inc.
+ Copyright (C) 2014-2022 Free Software Foundation, Inc.
This file is part of GDB.
#include "defs.h"
-#include "debug.h"
+#include "gdbsupport/common-debug.h"
/* See gdbsupport/common-debug.h. */
-void
-debug_vprintf (const char *fmt, va_list ap)
-{
- vfprintf_unfiltered (gdb_stdlog, fmt, ap);
-}
+int debug_print_depth = 0;
-/* See debug.h. */
+/* See gdbsupport/common-debug.h. */
void
-debug_prefixed_vprintf (const char *module, const char *func, const char *format,
- va_list args)
+debug_vprintf (const char *fmt, va_list ap)
{
- debug_printf ("[%s] %s: ", module, func);
- debug_vprintf (format, args);
- debug_printf ("\n");
+ vfprintf_unfiltered (gdb_stdlog, fmt, ap);
}