[commit] Fix gdb.threads/thread-find.exp for remote targets (fwd)

Message ID 201108051400.p75E0E7C031034@d06av02.portsmouth.uk.ibm.com
State Accepted
Headers show

Commit Message

Ulrich Weigand Aug. 5, 2011, 2 p.m.
http://sourceware.org/ml/gdb-patches/2011-08/msg00070.html

ChangeLog:

	* gdb.threads/thread-find.exp: Support remote targets.

Patch

Index: gdb/testsuite/gdb.threads/thread-find.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/thread-find.exp,v
retrieving revision 1.4
diff -u -p -r1.4 thread-find.exp
--- gdb/testsuite/gdb.threads/thread-find.exp	22 Feb 2011 18:51:27 -0000	1.4
+++ gdb/testsuite/gdb.threads/thread-find.exp	4 Aug 2011 12:48:11 -0000
@@ -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 .*" \