old-cross-binutils/gdb/testsuite/gdb.btrace
Markus Metzger da8c46d296 btrace: indicate speculative execution
Indicate speculatively executed instructions with a leading '?'.  We use the
space that is normally used for the PC prefix.  In the case where the
instruction at the current PC had been executed speculatively before, the PC
prefix will be partially overwritten resulting in "?> ".

As a side-effect, the /p modifier to omit the PC prefix in the "record
instruction-history" command now uses a 3-space PC prefix "   " in order to
have enough space for the speculative execution indication.

gdb/
	* btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
	(pt_btrace_insn_flags): New.
	(ftrace_add_pt): Call pt_btrace_insn_flags.
	* btrace.h (btrace_insn_flag): New.
	(btrace_insn) <flags>: New.
	* record-btrace.c (btrace_insn_history): Print insn prefix.
	* NEWS: Announce it.

doc/
	* gdb.texinfo (Process Record and Replay): Document prefixing of
	speculatively executed instructions in the "record instruction-history"
	command.

testsuite/
	* gdb.btrace/instruction_history.exp: Update.
	* gdb.btrace/tsx.exp: New.
	* gdb.btrace/tsx.c: New.
	* lib/gdb.exp (skip_tsx_tests, skip_btrace_pt_tests): New.
2015-08-07 10:22:39 +02:00
..
buffer-size.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
data.c
data.exp
delta.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
enable.c
enable.exp record-btrace: indicate gaps 2015-02-09 09:52:10 +01:00
exception.cc
exception.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
function_call_history.c
function_call_history.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
gcore.exp btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
i686-record_goto.S btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
i686-tailcall.S btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
instruction_history.c
instruction_history.exp btrace: indicate speculative execution 2015-08-07 10:22:39 +02:00
instruction_history.S
Makefile.in btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
multi-thread-step.c
multi-thread-step.exp
nohist.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
record_goto-step.exp record: set stop_pc in "record goto" command 2015-07-10 09:19:27 +02:00
record_goto.c
record_goto.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
rn-dl-bind.c
rn-dl-bind.exp
segv.c
segv.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
step.exp btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
stepi.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
tailcall.c btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
tailcall.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
tsx.c btrace: indicate speculative execution 2015-08-07 10:22:39 +02:00
tsx.exp btrace: indicate speculative execution 2015-08-07 10:22:39 +02:00
unknown_functions.c
unknown_functions.exp Share the "multi_line" helper among all testcases 2015-04-01 15:06:39 +02:00
vdso.c
vdso.exp
x86-tsx.S btrace: indicate speculative execution 2015-08-07 10:22:39 +02:00
x86_64-record_goto.S btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00
x86_64-tailcall.S btrace: fix tests for 32-bit 2015-03-25 14:18:02 +01:00