diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2021-03-08 15:50:24 +0100 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2021-04-12 14:46:16 +0200 |
commit | 9d8f30221b70361930fb82bf81e448b82f36cd58 (patch) | |
tree | 114b63cba1f41034a9b764590295c9e212589d50 /gdb | |
parent | 2cc15b10e5ce606e8348b7cf9b89ec06541231c5 (diff) | |
download | gdb-9d8f30221b70361930fb82bf81e448b82f36cd58.zip gdb-9d8f30221b70361930fb82bf81e448b82f36cd58.tar.gz gdb-9d8f30221b70361930fb82bf81e448b82f36cd58.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.btrace/reconnect.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 53333f9..aae2aa8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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> * 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 2e61d35..2657870 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: .*" \ |