aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ba1a501..5c83281 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
* arm-linux-tdep.c: Include "auxv.h".
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;
}