* gdb.dwarf2/clztest.exp: Fix initialization of tests array.

* gdb.dwarf2/typeddwarf.exp: Ditto.
This commit is contained in:
Doug Evans 2011-09-12 18:07:22 +00:00
parent 1b045aac31
commit 24ece742a0
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2011-09-12 Doug Evans <dje@google.com>
* gdb.dwarf2/clztest.exp: Fix initialization of tests array.
* gdb.dwarf2/typeddwarf.exp: Ditto.
2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix compatibility with x32 arch. Fix compatibility with x32 arch.

View File

@ -35,9 +35,9 @@ if ![runto_main] {
return -1 return -1
} }
global tests # Initialize tests to be an empty array.
set tests(_) - unset -nocomplain tests
unset tests(_) array set tests {}
proc gdb-test {line var value} { proc gdb-test {line var value} {
global tests global tests

View File

@ -39,9 +39,9 @@ if ![runto_main] {
return -1 return -1
} }
global tests # Initialize tests to be an empty array.
set tests(_) - unset -nocomplain tests
unset tests(_) array set tests {}
proc gdb-test {line var value} { proc gdb-test {line var value} {
global tests global tests