aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-09-12 18:07:22 +0000
committerDoug Evans <dje@google.com>2011-09-12 18:07:22 +0000
commit24ece742a04f8f109c26229d8818b208575618b2 (patch)
tree104cca5ec639a3acbe5f094dc8638e56db7ae0d0 /gdb
parent1b045aac3141f3121a3717f12777cb5b72da195f (diff)
downloadgdb-24ece742a04f8f109c26229d8818b208575618b2.zip
gdb-24ece742a04f8f109c26229d8818b208575618b2.tar.gz
gdb-24ece742a04f8f109c26229d8818b208575618b2.tar.bz2
* gdb.dwarf2/clztest.exp: Fix initialization of tests array.
* gdb.dwarf2/typeddwarf.exp: Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.dwarf2/clztest.exp6
-rw-r--r--gdb/testsuite/gdb.dwarf2/typeddwarf.exp6
3 files changed, 11 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b875a0b..cdd232d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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>
Fix compatibility with x32 arch.
diff --git a/gdb/testsuite/gdb.dwarf2/clztest.exp b/gdb/testsuite/gdb.dwarf2/clztest.exp
index 4e8cd69..039320b 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 ca0db06..7852371 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