[gdb/testsuite] Fix gdb.ada/mi_prot.exp
authorTom de Vries <tdevries@suse.de>
Mon, 20 Sep 2021 22:41:26 +0000 (00:41 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 20 Sep 2021 22:41:26 +0000 (00:41 +0200)
commitacb7bdf0d2235291adba1049a099729255571f2b
tree66f2f8855fbe618c3568ff9eb037abb61d4f31ef
parentff1c1bb9be3ed77fdabe594d977a9ccc67870fd0
[gdb/testsuite] Fix gdb.ada/mi_prot.exp

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.
gdb/testsuite/gdb.ada/mi_prot.exp