aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-06-21 13:57:21 +0000
committerDaniel Jacobowitz <drow@false.org>2006-06-21 13:57:21 +0000
commitbe2a5f717b0a6fc45c2c457c1342face409ac3d9 (patch)
tree426b09a298abe922ac878ca61fa14b341499b9c8 /gdb/gdbserver
parent5e542ba70e7c0b145ed83ed34f2b3efbe9e08656 (diff)
downloadgdb-be2a5f717b0a6fc45c2c457c1342face409ac3d9.zip
gdb-be2a5f717b0a6fc45c2c457c1342face409ac3d9.tar.gz
gdb-be2a5f717b0a6fc45c2c457c1342face409ac3d9.tar.bz2
gdb/
* NEWS: Mention qSupported. * remote.c (struct remote_state): Add explicit_packet_size. (get_remote_packet_size): Check explicit_packet_size. (get_memory_packet_size): Likewise. (PACKET_qSupported): New enum value. (struct protocol_feature, remote_supported_packet) (remote_packet_size, remote_protocol_features) (remote_query_supported): New. (remote_open_1): Reset explicit_packet_size. Call remote_query_supported. (_initialize_remote): Register qSupported. gdb/doc/ * gdb.texinfo (Remote configuration): Document set / show remote supported-packets. (General Query Packets): Document qSupported packet. gdb/gdbserver/ * server.c (handle_query): Handle qSupported.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/server.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 2881a26..1cf91b5 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * server.c (handle_query): Handle qSupported.
+
2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
* remote-utils.c (all_symbols_looked_up): New variable.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 51b8764..8099ef4 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -163,6 +163,14 @@ handle_query (char *own_buf)
return;
}
+ /* Protocol features query. */
+ if (strncmp ("qSupported", own_buf, 10) == 0
+ && (own_buf[10] == ':' || own_buf[10] == '\0'))
+ {
+ sprintf (own_buf, "PacketSize=%x", PBUFSIZ - 1);
+ return;
+ }
+
/* Otherwise we didn't know what packet it was. Say we didn't
understand it. */
own_buf[0] = 0;