From: Tom Tromey Date: Mon, 19 Aug 2024 16:48:18 +0000 (-0600) Subject: Ensure gdb.ada/multiarray.exp runs in both modes X-Git-Tag: gdb-16-branchpoint~1109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8be66a3708a98e8fccdc79218f7dde3fef63ee41;p=thirdparty%2Fbinutils-gdb.git Ensure gdb.ada/multiarray.exp runs in both modes gdb.ada/multiarray.exp has a loop that looks like it should run the test in both 'all' and 'minimal' encodings mode. However, the body of the loop doesn't actually use the 'flags' variable. This was an oversight in the original commit. --- diff --git a/gdb/testsuite/gdb.ada/multiarray.exp b/gdb/testsuite/gdb.ada/multiarray.exp index 34756476ff7..9be0aaabeee 100644 --- a/gdb/testsuite/gdb.ada/multiarray.exp +++ b/gdb/testsuite/gdb.ada/multiarray.exp @@ -22,7 +22,8 @@ standard_ada_testfile p foreach_with_prefix scenario {all minimal} { set flags [list debug additional_flags=-fgnat-encodings=$scenario] - if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" executable {debug}] != ""} { + if {[gdb_compile_ada "${srcfile}" "${binfile}-${scenario}" \ + executable $flags] != ""} { return -1 }