aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/remote-utils.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-26 20:10:18 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-26 20:10:18 +0000
commitc74d0ad8276928d58b080ecd50eb5026aac49c5d (patch)
tree609bae4ed2a63d4b044efa52927634fc265d4904 /gdb/gdbserver/remote-utils.c
parent2711e4564f4ab411bdf2cedff3fb92abadd630b8 (diff)
downloadgdb-c74d0ad8276928d58b080ecd50eb5026aac49c5d.zip
gdb-c74d0ad8276928d58b080ecd50eb5026aac49c5d.tar.gz
gdb-c74d0ad8276928d58b080ecd50eb5026aac49c5d.tar.bz2
* gdb.texinfo (Monitor commands for gdbserver): New subsection.
* remote-utils.c (monitor_output): New function. * server.c (debug_threads): Define here. (monitor_show_help): New function. (handle_query): Handle qRcmd. (main): Do not handle 'd' packet. * server.h (debug_threads, remote_debug, monitor_output): Declare. * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions of debug_threads. * gdb.server/server-mon.exp: New test.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r--gdb/gdbserver/remote-utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index ffacb6e..6a9a176 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -1074,3 +1074,15 @@ look_up_one_symbol (const char *name, CORE_ADDR *addrp)
return 1;
}
+
+void
+monitor_output (char *msg)
+{
+ char *buf = malloc (strlen (msg) * 2 + 2);
+
+ buf[0] = 'O';
+ hexify (buf + 1, msg, 0);
+
+ putpkt (buf);
+ free (buf);
+}