2011-06-16 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Thu, 16 Jun 2011 02:19:44 +0000 (02:19 +0000)
committerHui Zhu <teawater@gmail.com>
Thu, 16 Jun 2011 02:19:44 +0000 (02:19 +0000)
* remote.c (remote_trace_set_readonly_regions): Add check for
remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
output warning.

gdb/ChangeLog
gdb/remote.c

index ba1a501f79410989ad402725e3b758026dbe8dd2..5c832819acbc1ea7d49d7530d31ad1994d9b4599 100644 (file)
@@ -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".
index e30798617954a2f14cb74d079630a1ae2c886dc2..8cdf79e2f91518660b24787544dc3ea570afece7 100644 (file)
@@ -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;
        }