diff options
author | Pedro Alves <palves@redhat.com> | 2015-08-24 19:58:31 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-08-24 19:58:31 +0100 |
commit | 73b8c1fda9f3759874a9a1a7e7402276da057153 (patch) | |
tree | 9c8db5b4cb16899125b91fb3e04defdf4f336f90 /gdb/remote.c | |
parent | 4a626d0a0f451c3288a461f64a9f8a49790d422b (diff) | |
download | binutils-gdb-73b8c1fda9f3759874a9a1a7e7402276da057153.tar.gz |
Add "set remote multiprocess-extensions-packet" command
Being able to force-disable the RSP multiprocess extensions is useful
for testing.
gdb/ChangeLog:
2015-08-24 Pedro Alves <palves@redhat.com>
* NEWS (New commands): Mention set/show remote
multiprocess-extensions-packet.
* remote.c (remote_query_supported): Only tell the server to use
the multiprocess extensions if the user hasn't force-disabled them
with "set remote multiprocess-extensions-packet off".
gdb/doc/ChangeLog:
2015-08-24 Pedro Alves <palves@redhat.com>
* gdb.texinfo (Remote Configuration): Document the "set/show
remote multiprocess-extensions-packet" commands.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 48a4f7d894c..f2968ebdb27 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -4352,7 +4352,8 @@ remote_query_supported (void) char *q = NULL; struct cleanup *old_chain = make_cleanup (free_current_contents, &q); - q = remote_query_supported_append (q, "multiprocess+"); + if (packet_set_cmd_state (PACKET_multiprocess_feature) != AUTO_BOOLEAN_FALSE) + q = remote_query_supported_append (q, "multiprocess+"); if (packet_set_cmd_state (PACKET_swbreak_feature) != AUTO_BOOLEAN_FALSE) q = remote_query_supported_append (q, "swbreak+"); @@ -13231,6 +13232,9 @@ Show the maximum size of the address (in bits) in a memory packet."), NULL, add_packet_config_cmd (&remote_protocol_packets[PACKET_Qbtrace_conf_bts_size], "Qbtrace-conf:bts:size", "btrace-conf-bts-size", 0); + add_packet_config_cmd (&remote_protocol_packets[PACKET_multiprocess_feature], + "multiprocess-feature", "multiprocess-feature", 0); + add_packet_config_cmd (&remote_protocol_packets[PACKET_swbreak_feature], "swbreak-feature", "swbreak-feature", 0); @@ -13260,7 +13264,6 @@ Show the maximum size of the address (in bits) in a memory packet."), NULL, switch (i) { case PACKET_QNonStop: - case PACKET_multiprocess_feature: case PACKET_EnableDisableTracepoints_feature: case PACKET_tracenz_feature: case PACKET_DisconnectedTracing_feature: |