]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/gdbserver/ax.c
gdbserver: Ensure all debug output uses debug functions
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ax.c
index a16fba1ccd73c50950d1be638a6c1a24b39402eb..7b8df917492debf251c4eba54f944d02d83a5798 100644 (file)
@@ -36,7 +36,11 @@ ax_vdebug (const char *fmt, ...)
 
   va_start (ap, fmt);
   vsprintf (buf, fmt, ap);
+#ifdef IN_PROCESS_AGENT
   fprintf (stderr, PROG "/ax: %s\n", buf);
+#else
+  debug_printf (PROG "/ax: %s\n", buf);
+#endif
   va_end (ap);
 }