[binutils-gdb] gdb, testsuite, btrace: relax unneeded stepi expected output

Markus Metzger mmetzger@sourceware.org
Mon Apr 12 12:46:40 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9d8f30221b70361930fb82bf81e448b82f36cd58

commit 9d8f30221b70361930fb82bf81e448b82f36cd58
Author: Markus Metzger <markus.t.metzger@intel.com>
Date:   Mon Mar 8 15:50:24 2021 +0100

    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.

Diff:
---
 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  <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 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: .*" \


More information about the Gdb-cvs mailing list