diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-04 10:33:05 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-18 14:22:54 +0200 |
commit | cf8f8f0c4244b4980ce538680f81de3738ba08d6 (patch) | |
tree | 6f6995d64854ebc911f946b234524eacfe195b2b | |
parent | 011c71b6cbda4ecd856a08cf3124330d7f4342de (diff) | |
download | gdb-cf8f8f0c4244b4980ce538680f81de3738ba08d6.zip gdb-cf8f8f0c4244b4980ce538680f81de3738ba08d6.tar.gz gdb-cf8f8f0c4244b4980ce538680f81de3738ba08d6.tar.bz2 |
btrace: add missing NO_HISTORY
If a single-step ended right at the end of the execution history, we forgot
to announce that. Fix it.
gdb/
* record-btrace.c (record_btrace_single_step_forward): Return
NO_HISTORY if a step brings us to the end of the execution history.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/record-btrace.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e50557f..3fafdef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-09-18 Markus Metzger <markus.t.metzger@intel.com> + * record-btrace.c (record_btrace_single_step_forward): Return + NO_HISTORY if a step brings us to the end of the execution history. + +2015-09-18 Markus Metzger <markus.t.metzger@intel.com> + * record-btrace.c (record_btrace_step_thread): Move breakpoint check to ... (record_btrace_single_step_forward): ... here and diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 5e8c1d4..fcd4351 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -2061,7 +2061,10 @@ record_btrace_single_step_forward (struct thread_info *tp) /* We stop replaying if we reached the end of the trace. */ if (btrace_insn_cmp (replay, &end) == 0) - record_btrace_stop_replaying (tp); + { + record_btrace_stop_replaying (tp); + return btrace_step_no_history (); + } return btrace_step_spurious (); } |