btrace: add replay position to btrace thread info
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 26 Apr 2013 06:37:06 +0000 (08:37 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 16 Jan 2014 12:06:09 +0000 (13:06 +0100)
commit07bbe694e779f4953911a50751abdc00117be7d3
treea8da63d6506d00e24eb7cab38fa734a33a46c971
parent0688d04e19c0e6305c1034eb5e97a66458fd805a
btrace: add replay position to btrace thread info

Add a branch trace instruction iterator pointing to the current replay position
to the branch trace thread info struct.

Free the iterator when btrace is cleared.

Start at the replay position for the instruction and function-call histories.

2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>

* btrace.h (replay) <replay>: New.
(btrace_is_replaying): New.
* btrace.c (btrace_clear): Free replay iterator.
(btrace_is_replaying): New.
* record-btrace.c (record_btrace_is_replaying): New.
(record_btrace_info): Print insn number if replaying.
(record_btrace_insn_history): Start at replay position.
(record_btrace_call_history): Start at replay position.
(init_record_btrace_ops): Init to_record_is_replaying.
gdb/ChangeLog
gdb/btrace.c
gdb/btrace.h
gdb/record-btrace.c