gdb: remove BLOCK_FUNCTION macro
[binutils-gdb.git] / gdb / debug.c
index 95cf617fee24bdb773bab84dc592d84d50d5dae8..b29a6620afed7b5bfd34273415acc30ab4bcec6b 100644 (file)
@@ -1,6 +1,6 @@
 /* Debug printing functions.
 
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 #include "defs.h"
 
-/* See common/common-debug.h.  */
+#include "gdbsupport/common-debug.h"
+
+/* See gdbsupport/common-debug.h.  */
+
+int debug_print_depth = 0;
+
+/* See gdbsupport/common-debug.h.  */
 
 void
 debug_vprintf (const char *fmt, va_list ap)
 {
-  vfprintf_unfiltered (gdb_stdlog, fmt, ap);
+  gdb_vprintf (gdb_stdlog, fmt, ap);
 }