aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-08-19 10:48:18 -0600
committerTom Tromey <tromey@adacore.com>2024-08-19 10:48:18 -0600
commit8be66a3708a98e8fccdc79218f7dde3fef63ee41 (patch)
treef347e6e2bb39cd22d61b32ae72c795fdf6b65301 /gdb
parent73fbc50f4bedd22df171d36bb01e77e9ca33691b (diff)
downloadgdb-8be66a3708a98e8fccdc79218f7dde3fef63ee41.zip
gdb-8be66a3708a98e8fccdc79218f7dde3fef63ee41.tar.gz
gdb-8be66a3708a98e8fccdc79218f7dde3fef63ee41.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.ada/multiarray.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/multiarray.exp b/gdb/testsuite/gdb.ada/multiarray.exp
index 3475647..9be0aaa 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
}