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.
This commit is contained in:
Markus Metzger 2015-09-04 10:33:05 +02:00
parent 011c71b6cb
commit cf8f8f0c42
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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 ();
}