From acb7bdf0d2235291adba1049a099729255571f2b Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 21 Sep 2021 00:41:26 +0200 Subject: [PATCH] [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 | 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=.*" -- 2.30.2