From 864ac8a76cd35fe28e4153233b23947cd9e0f066 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Thu, 16 Jun 2011 02:19:44 +0000 Subject: [PATCH] 2011-06-16 Hui Zhu * remote.c (remote_trace_set_readonly_regions): Add check for remote_protocol_packets[PACKET_qXfer_traceframe_info].support before output warning. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ba1a501f794..5c832819acb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-06-16 Hui Zhu + + * 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 * arm-linux-tdep.c: Include "auxv.h". diff --git a/gdb/remote.c b/gdb/remote.c index e3079861795..8cdf79e2f91 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; } -- 2.30.2