* [committed][gdb/testsuite] Fix gdb.ada/mi_prot.exp
@ 2021-09-20 22:41 Tom de Vries via Gdb-patches
0 siblings, 0 replies; only message in thread
From: Tom de Vries via Gdb-patches @ 2021-09-20 22:41 UTC (permalink / raw)
To: gdb-patches
Hi,
When running test-case gdb.ada/mi_prot.exp with gcc 8.5.0, we run into:
...
(gdb) ^M
Expecting: ^(-stack-list-arguments --no-frame-filters 1[^M
]+)?(\^done,stack=.*[^M
]+[(]gdb[)] ^M
[ ]*)
-stack-list-arguments --no-frame-filters 1^M
^done,stack-args=[frame={level="0",args=[{name="<_object>",value="(ceiling_priority =\
> 97, local => 0)"},{name="v",value="5"},{name="<_objectO>",value="true"}]},frame={le\
vel="1",args=[{name="v",value="5"},{name="<_objectO>",value="true"}]},frame={level="2\
",args=[]}]^M
(gdb) ^M
FAIL: gdb.ada/mi_prot.exp: -stack-list-arguments --no-frame-filters 1 (unexpected out\
put)
...
Fix this by updating the regexp to expect "^done,stack-args=" instead of
"^done,stack=".
Tested on x86_64-linux.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix gdb.ada/mi_prot.exp
---
gdb/testsuite/gdb.ada/mi_prot.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.ada/mi_prot.exp b/gdb/testsuite/gdb.ada/mi_prot.exp
index b50c3468b71..8936a6c5584 100644
--- a/gdb/testsuite/gdb.ada/mi_prot.exp
+++ b/gdb/testsuite/gdb.ada/mi_prot.exp
@@ -46,4 +46,4 @@ mi_continue_to_line $line "continue to protected method"
# The bug was that this crashed.
mi_gdb_test "-stack-list-arguments --no-frame-filters 1" \
- "\\^done,stack=.*"
+ "\\^done,stack-args=.*"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-20 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 22:41 [committed][gdb/testsuite] Fix gdb.ada/mi_prot.exp Tom de Vries via Gdb-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox