[PATCH v3 05/14] update gdb.base/info-program.exp to not fail with clang
Bruno Larsen
blarsen@redhat.com
Thu May 26 15:10:32 GMT 2022
The updated test specifically mentions that it doesn't care where the
program stops, however it was still testing for something. With this
correction, the test works even if the compiler doesn't add epilogue
information to functions.
---
No change in v3.
No change in v2.
---
gdb/testsuite/gdb.base/info-program.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/info-program.exp b/gdb/testsuite/gdb.base/info-program.exp
index facc13efa2f..f652cfbf426 100644
--- a/gdb/testsuite/gdb.base/info-program.exp
+++ b/gdb/testsuite/gdb.base/info-program.exp
@@ -28,7 +28,7 @@ gdb_test "info program" "Program stopped at $hex\.\r\nIt stopped at breakpoint $
# We don't really care where this step lands, so long as it gets
# the inferior pushed off the breakpoint it's currently on...
-gdb_test "next" "$decimal\t.*" "step before info program"
+gdb_test "next" ".*" "step before info program"
gdb_test "info program" "Program stopped at $hex\.\r\nIt stopped after being stepped\.\r\nType \"info stack\" or \"info registers\" for more information\." \
"info program after next"
--
2.31.1
More information about the Gdb-patches
mailing list