aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2011-06-16 02:19:44 +0000
committerHui Zhu <teawater@gmail.com>2011-06-16 02:19:44 +0000
commit864ac8a76cd35fe28e4153233b23947cd9e0f066 (patch)
tree3bff57140b4a65f9e52447dcefcf34dbd5708535 /gdb/remote.c
parent6f1683b9c05af1f4e16e02b463598149ec197270 (diff)
downloadgdb-864ac8a76cd35fe28e4153233b23947cd9e0f066.zip
gdb-864ac8a76cd35fe28e4153233b23947cd9e0f066.tar.gz
gdb-864ac8a76cd35fe28e4153233b23947cd9e0f066.tar.bz2
2011-06-16 Hui Zhu <teawater@gmail.com>
* remote.c (remote_trace_set_readonly_regions): Add check for remote_protocol_packets[PACKET_qXfer_traceframe_info].support before output warning.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index e307986..8cdf79e 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10001,7 +10001,9 @@ remote_trace_set_readonly_regions (void)
sec_length = 1 + strlen (tmp1) + 1 + strlen (tmp2);
if (offset + sec_length + 1 > target_buf_size)
{
- warning (_("\
+ if (remote_protocol_packets[PACKET_qXfer_traceframe_info].support
+ != PACKET_ENABLE)
+ warning (_("\
Too many sections for read-only sections definition packet."));
break;
}