This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] PR remote/20655 - small fix in handle_tracepoint_bkpts
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 5 Oct 2016 16:32:31 -0000
- Subject: [binutils-gdb] PR remote/20655 - small fix in handle_tracepoint_bkpts
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=39b5a3b9b3aadac723de719f3c27f8462ed49af7
commit 39b5a3b9b3aadac723de719f3c27f8462ed49af7
Author: Tom Tromey <tom@tromey.com>
Date: Fri Sep 30 15:45:26 2016 -0600
PR remote/20655 - small fix in handle_tracepoint_bkpts
handle_tracepoint_bkpts has two parallel "if"s. This changes the
second one to check ipa_error_tracepoint, which seems to be what was
intended.
2016-10-05 Tom Tromey <tom@tromey.com>
PR remote/20655:
* tracepoint.c (handle_tracepoint_bkpts): Check
ipa_error_tracepoint, not ipa_stopping_tracepoint.
Diff:
---
gdb/gdbserver/ChangeLog | 6 ++++++
gdb/gdbserver/tracepoint.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f0e8c29..42edcc7 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-05 Tom Tromey <tom@tromey.com>
+
+ PR remote/20655:
+ * tracepoint.c (handle_tracepoint_bkpts): Check
+ ipa_error_tracepoint, not ipa_stopping_tracepoint.
+
2016-10-05 Yao Qi <yao.qi@linaro.org>
* configure.srv: Update the path of arm-*.xml files.
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index c07e525..7700ad1 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -4534,7 +4534,7 @@ handle_tracepoint_bkpts (struct thread_info *tinfo, CORE_ADDR stop_pc)
trace_debug ("lib stopped due to full buffer.");
if (ipa_stopping_tracepoint)
trace_debug ("lib stopped due to tpoint");
- if (ipa_stopping_tracepoint)
+ if (ipa_error_tracepoint)
trace_debug ("lib stopped due to error");
}