aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/debug.c')
-rw-r--r--gdb/gdbserver/debug.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/debug.c b/gdb/gdbserver/debug.c
index d80cd52..a1cf5db 100644
--- a/gdb/gdbserver/debug.c
+++ b/gdb/gdbserver/debug.c
@@ -130,3 +130,12 @@ do_debug_exit (const char *function_name)
if (function_name != NULL)
debug_printf ("<<<< exiting %s\n", function_name);
}
+
+/* See debug.h. */
+
+size_t
+debug_write (const void *buf, size_t nbyte)
+{
+ int fd = fileno (debug_file);
+ return write (fd, buf, nbyte);
+}