aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-waitpid.c
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2019-04-16 10:37:47 +0100
committerAlan Hayward <alan.hayward@arm.com>2019-04-17 10:42:46 +0100
commita7e559cc087b10b9ea337b58e52cc13964aae3fb (patch)
tree9d37b96a5ec1c3c53df5d92c2f2d86fcad65523c /gdb/nat/linux-waitpid.c
parentaeb2e706e1b9c491d20c88c8ead1ae9df9cee04a (diff)
downloadgdb-a7e559cc087b10b9ea337b58e52cc13964aae3fb.zip
gdb-a7e559cc087b10b9ea337b58e52cc13964aae3fb.tar.gz
gdb-a7e559cc087b10b9ea337b58e52cc13964aae3fb.tar.bz2
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.
Diffstat (limited to 'gdb/nat/linux-waitpid.c')
-rw-r--r--gdb/nat/linux-waitpid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-waitpid.c b/gdb/nat/linux-waitpid.c
index e31c088..a7d11ab 100644
--- a/gdb/nat/linux-waitpid.c
+++ b/gdb/nat/linux-waitpid.c
@@ -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