]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.threads/linux-dp.exp
Reapply: List inferiors/threads/pspaces in ascending order
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.threads / linux-dp.exp
index 7b5c706cf32e1841119ff15398f7702434eeb0e2..6365f7d09859dc093c38d2551a00665354fb6138 100644 (file)
@@ -168,7 +168,7 @@ set nthreads 6
 gdb_breakpoint [gdb_get_line_number "linuxthreads.exp: info threads 2"]
 gdb_continue_to_breakpoint "main thread's sleep"
 set info_threads_ptn ".*"
-for {set i $nthreads} {$i > 0} {incr i -1} {
+for {set i 1} {$i <  $nthreads} {incr i} {
     append info_threads_ptn "$i *Thread .*"
 }
 append info_threads_ptn "\[\r\n\]+$gdb_prompt $"