From: Tom de Vries Date: Mon, 20 Sep 2021 22:41:26 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb.ada/mi_prot.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acb7bdf0d2235291adba1049a099729255571f2b;p=binutils-gdb.git [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. --- 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=.*"