From 9d8f30221b70361930fb82bf81e448b82f36cd58 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Mon, 8 Mar 2021 15:50:24 +0100 Subject: [PATCH] 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.btrace/reconnect.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 53333f93379..aae2aa8384c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-04-12 Markus Metzger + + * gdb.btrace/reconnect.exp: Relax expected stepi output. + 2021-04-07 Weimin Pan * gdb.base/ctf-ptype.c: Add struct link containing a forward diff --git a/gdb/testsuite/gdb.btrace/reconnect.exp b/gdb/testsuite/gdb.btrace/reconnect.exp index 2e61d3591f3..26578706eaf 100644 --- a/gdb/testsuite/gdb.btrace/reconnect.exp +++ b/gdb/testsuite/gdb.btrace/reconnect.exp @@ -51,7 +51,7 @@ gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport # Create a record, check, reconnect with_test_prefix "first" { 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 \ "Active record target: .*" \ -- 2.30.2