diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b875a0b6d5..cdd232d3b5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-09-12 Doug Evans + + * gdb.dwarf2/clztest.exp: Fix initialization of tests array. + * gdb.dwarf2/typeddwarf.exp: Ditto. + 2011-09-08 Jan Kratochvil Fix compatibility with x32 arch. diff --git a/gdb/testsuite/gdb.dwarf2/clztest.exp b/gdb/testsuite/gdb.dwarf2/clztest.exp index 4e8cd69444..039320ba36 100644 --- a/gdb/testsuite/gdb.dwarf2/clztest.exp +++ b/gdb/testsuite/gdb.dwarf2/clztest.exp @@ -35,9 +35,9 @@ if ![runto_main] { return -1 } -global tests -set tests(_) - -unset tests(_) +# Initialize tests to be an empty array. +unset -nocomplain tests +array set tests {} proc gdb-test {line var value} { global tests diff --git a/gdb/testsuite/gdb.dwarf2/typeddwarf.exp b/gdb/testsuite/gdb.dwarf2/typeddwarf.exp index ca0db06ec2..7852371b12 100644 --- a/gdb/testsuite/gdb.dwarf2/typeddwarf.exp +++ b/gdb/testsuite/gdb.dwarf2/typeddwarf.exp @@ -39,9 +39,9 @@ if ![runto_main] { return -1 } -global tests -set tests(_) - -unset tests(_) +# Initialize tests to be an empty array. +unset -nocomplain tests +array set tests {} proc gdb-test {line var value} { global tests