inf-ptrace: Return an IGNORE event if waitpid() fails.
[binutils-gdb.git] / gdb / debug.c
index f845a7e3b1e708f99aea2e8665317c132de27dd1..6f9cad0ddd03d241f9bfa6894846e105543b0828 100644 (file)
@@ -1,6 +1,6 @@
 /* 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);
 }