gdbserver: Ensure all debug output uses debug functions

All debug output needs to go via debug functions to ensure it writes to the
correct output stream.

gdb/ChangeLog:

	* nat/linux-waitpid.c (linux_debug): Call debug_vprintf.

gdb/gdbserver/ChangeLog:

	* ax.c (ax_vdebug): Call debug_printf.
	* debug.c (debug_write): New function.
	* debug.h (debug_write): New declaration.
	* linux-low.c (sigchld_handler): Call debug_write.
This commit is contained in:
Alan Hayward
2019-04-16 10:37:47 +01:00
parent aeb2e706e1
commit a7e559cc08
7 changed files with 31 additions and 5 deletions

View File

@ -42,7 +42,7 @@ linux_debug (const char *format, ...)
{
va_list args;
va_start (args, format);
vfprintf (stderr, format, args);
debug_vprintf (format, args);
va_end (args);
}
#endif