diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote.c | 4 |
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; } |