aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-04-25 13:54:00 +0000
committerTom Tromey <tromey@redhat.com>2012-04-25 13:54:00 +0000
commite65f9ffb8e49431537404712a5b1eed310964cb0 (patch)
treef814cfd54cd68eb91fcff31fa809f2ed0c02c781
parentf02e2b19dd1bde9a77ac106db19185237d6d321b (diff)
downloadgdb-e65f9ffb8e49431537404712a5b1eed310964cb0.zip
gdb-e65f9ffb8e49431537404712a5b1eed310964cb0.tar.gz
gdb-e65f9ffb8e49431537404712a5b1eed310964cb0.tar.bz2
* gdb.threads/linux-dp.exp: Unset 'seen' before 'array set'.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.threads/linux-dp.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7bf0cc1..8c1fd30 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-04-25 Tom Tromey <tromey@redhat.com>
+
+ * gdb.threads/linux-dp.exp: Unset 'seen' before 'array set'.
+
2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp
index d7fa125..d74cded 100644
--- a/gdb/testsuite/gdb.threads/linux-dp.exp
+++ b/gdb/testsuite/gdb.threads/linux-dp.exp
@@ -339,8 +339,8 @@ proc check_philosopher_stack {thread seen_name} {
}
set any_interesting 0
+catch {unset seen}
array set seen {}
-unset seen
for {set i 1} {$i <= $nthreads} {incr i} {
if [check_philosopher_stack $i seen] {
set any_interesting 1