diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc index 80f99fea6aa..6b8bfb0d6c6 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/MultiThread.cc @@ -6,9 +6,9 @@ void *PrintHello(void *threadid) { - int tid; - tid = (int)threadid; + int tid = (int)threadid; printf("Hello World! It's me, thread #%d!\n", tid); + sleep(2); // keep this thread around for a bit; the tests will check for its existence while the main thread is stopped at a breakpoint pthread_exit(NULL); }