diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-06-21 13:57:21 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-06-21 13:57:21 +0000 |
commit | 134efc9aa4852768acccde71b80d74b85999b4ab (patch) | |
tree | 89a236b0b1ebeec21bbaad203567ce3d32142c20 /gdb/gdbserver | |
parent | 1a3120d7eac289a93e3e0a3f476661186b816f65 (diff) | |
download | gdb-134efc9aa4852768acccde71b80d74b85999b4ab.tar.gz |
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/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2881a26ae31..1cf91b5018a 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 51b87642a83..8099ef41898 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; |