* [pushed] [gdb/testsuite] Fix gdb.base/unwind-on-each-insn.exp for -m32
@ 2023-01-25 15:36 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-01-25 15:36 UTC (permalink / raw)
To: gdb-patches
With test-case gdb.base/unwind-on-each-insn.exp and target board unix/-m32, I
now get:
...
# of expected passes 25
...
instead of:
...
# of expected passes 133
...
as I used to get before commit d25a8dbc7c3 ("[gdb/testsuite] Allow debug
srcfile2 in gdb.base/unwind-on-each-insn.exp"), due to the test-case trying to match
"rip = " and info frame printing "eip = " instead.
Fix this by dropping "rip" from the regexp.
Tested on x86_64-linux, target boards unix/{-m64,-m32}.
---
gdb/testsuite/gdb.base/unwind-on-each-insn.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp
index 059967a2b2e..0d0683659c3 100644
--- a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp
+++ b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp
@@ -146,7 +146,7 @@ proc do_test { function step_cmd } {
set in_fn 0
gdb_test_multiple "info frame" "" {
- -re -wrap "rip = $::hex in ${function}( \\(.*\\))?;.*" {
+ -re -wrap " = $::hex in ${function}( \\(.*\\))?;.*" {
set in_fn 1
}
-re -wrap "" {}
base-commit: d25a8dbc7c3ae12aea8a203ce64f78608e22daa0
--
2.35.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-25 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 15:36 [pushed] [gdb/testsuite] Fix gdb.base/unwind-on-each-insn.exp for -m32 Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).