]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
testsuite, gdb.btrace: adjust expected source line in non-stop.exp
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 17 Dec 2020 09:28:18 +0000 (10:28 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 3 Mar 2021 08:18:18 +0000 (09:18 +0100)
In gdb.btrace/non-stop.exp, we hard-code expected source lines assuming we
know how they would match to the recorded trace.  Despite the fact that we
should really have been using an assembly source, the assumptions work
pretty well.

With clang-6 -m32, we found a case where the assumptions do not hold.
Adjust the expected source lines a little bit to cover that case, as well.

Should we run into more cases like this, we will have to switch to an
assembly source file.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/non-stop.exp

index 12ee7b9306421f01346ab4d469929d1ef3c4637e..970d6fef727b50d84478e25dd9fe887391739c0f 100644 (file)
@@ -1,3 +1,7 @@
+2021-03-03  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * gdb.btrace/non-stop.exp: Adjust expected source lines.
+
 2021-03-03  Markus Metzger  <markus.t.metzger@intel.com>
 
        * gdb.btrace/stepi.exp: Add {} options to prepare_for_testing.
index 40cced7a8bb7f48ad2cae8cb4dee7543fbd2765d..e509d65d660ac7878ec05e3ba0c76cd8ae05caf4 100644 (file)
@@ -111,10 +111,10 @@ gdb_test "thread apply all info rec" ".*"
 gdb_test "info threads" ".*"
 
 with_test_prefix "navigate" {
-    gdb_test "thread apply 1 record goto 2" "$loop_line"
+    gdb_test "thread apply 1 record goto 3" "$loop_line"
     gdb_test "thread apply 2 record goto 4" "$loop_line"
     gdb_test "thread apply 1 info record" \
-        ".*Replay in progress\.  At instruction 2\." "thread 1 at insn 2"
+        ".*Replay in progress\.  At instruction 3\." "thread 1 at insn 3"
     gdb_test "thread apply 2 info record" \
         ".*Replay in progress\.  At instruction 4\." "thread 2 at insn 4"