gdb, testsuite, btrace: relax unneeded stepi expected output

In gdb.btrace/reconnect.exp, we test that we can disconnect and reconnect
again to a GDB session that is recording with the btrace recording format.
It does not really matter what we are recording.

The test assumed that stepping from _start will bring us into an area
without debug information.  This is not correct on all systems.

Relax the expected output to also support systems where we do have debug
information for that code.
This commit is contained in:
Markus Metzger
2021-03-08 15:50:24 +01:00
parent 2cc15b10e5
commit 9d8f30221b
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-04-12 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/reconnect.exp: Relax expected stepi output.
2021-04-07 Weimin Pan <weimin.pan@oracle.com> 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
* gdb.base/ctf-ptype.c: Add struct link containing a forward * gdb.base/ctf-ptype.c: Add struct link containing a forward

View File

@ -51,7 +51,7 @@ gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport
# Create a record, check, reconnect # Create a record, check, reconnect
with_test_prefix "first" { with_test_prefix "first" {
gdb_test_no_output "record btrace" "record btrace enable" gdb_test_no_output "record btrace" "record btrace enable"
gdb_test "stepi 19" "($hex in .* from .*|$hex\t$decimal.*)" gdb_test "stepi 19" ".*"
gdb_test "info record" [multi_line \ gdb_test "info record" [multi_line \
"Active record target: .*" \ "Active record target: .*" \