In gdb.btrace/delta.exp, we test that we do not extend the trace
unintentionally. This can be tested by checking the number of
instructions.
If we wanted to check the instruction history, as well, we'd need to work
on an assembly file to have deterministic behaviour. This isn't really
necessary for this test, however, and covered elsewhere. Also remove the
function call history check for the same reason.
+2021-03-03 Markus Metzger <markus.t.metzger@intel.com>
+
+ * gdb.btrace/delta.exp: Remove instruction-history and
+ function-call-history checks.
+
2021-03-03 Markus Metzger <markus.t.metzger@intel.com>
* README (Note): Add nopie_ldflag.
"Recording format: .*" \
"Recorded 1 instructions in 1 functions \\\(0 gaps\\\) for .*" \
]
- gdb_test "record instruction-history /f 1" \
- "1\t 0x\[0-9a-f\]+ <\\+\[0-9\]+>:\tmov *\\\$0x0,%eax\r"
- gdb_test "record function-call-history /c 1" "1\tmain"
}
# make sure we don't extend the trace when we ask twice.
# and back
with_test_prefix "forward" {
gdb_test "stepi"
- gdb_test "info record" [multi_line \
- "Active record target: record-btrace" \
- "Recording format: .*" \
- "Recorded 1 instructions in 1 functions \\\(0 gaps\\\) for .*" \
- ]
+ check_trace
}