diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-06-21 13:57:21 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-06-21 13:57:21 +0000 |
commit | be2a5f717b0a6fc45c2c457c1342face409ac3d9 (patch) | |
tree | 426b09a298abe922ac878ca61fa14b341499b9c8 /gdb/gdbserver/server.c | |
parent | 5e542ba70e7c0b145ed83ed34f2b3efbe9e08656 (diff) | |
download | gdb-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/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |