* gdb.threads/thread-find.exp: Support remote targets.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 4 Aug 2011 12:49:33 +0000 (12:49 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 4 Aug 2011 12:49:33 +0000 (12:49 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/thread-find.exp

index e8e883e5c71e7de9911abe55e232d427c4a07086..dcc63dfcc51d756029c496b7db4613202fa07d0e 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * gdb.threads/thread-find.exp: Support remote targets.
+
 2011-08-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * gdb.base/jit.exp: Download solib_binfile to target.
index 305cc2c92b638473f9118c1b384fac6a7a329967..c4723946e6142f40c4104e1a318e746f13dedc77 100644 (file)
@@ -38,6 +38,10 @@ runto_main
 gdb_breakpoint [gdb_get_line_number "linuxthreads.exp: info threads 2"]
 gdb_continue_to_breakpoint "main thread's sleep"
 
+# Make sure thread list is up-to-date (in case remote targets have not yet
+# reported thread creation events)
+gdb_test "info threads"
+
 # Create thread names.
 gdb_test "thread apply 1 thread name threadname_1" \
     "Thread 1 .*" \