diff options
author | Yao Qi <yao@codesourcery.com> | 2012-11-14 05:52:32 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-11-14 05:52:32 +0000 |
commit | e5d9816410384b2588c9b1972de031228a285444 (patch) | |
tree | 3442fce0a442c094f1416a699deef346430587f1 /gdb/testsuite/gdb.threads/manythreads.c | |
parent | 2ae28aa91e6ac03b623e098900ea377ba47d9920 (diff) | |
download | gdb-e5d9816410384b2588c9b1972de031228a285444.zip gdb-e5d9816410384b2588c9b1972de031228a285444.tar.gz gdb-e5d9816410384b2588c9b1972de031228a285444.tar.bz2 |
gdb/testsuite/
2012-11-14 Yao Qi <yao@codesourcery.com>
* gdb.threads/manythreads.c [DEBUG]: Include "stdio.h".
(thread_function) [DEBUG]: Call 'printf'.
* gdb.threads/manythreads.exp: Pass '-DDEBUG' to compilation
command line if 'DEBUG=1' is passed to test.
Remove a pattern to match inferior's output.
Diffstat (limited to 'gdb/testsuite/gdb.threads/manythreads.c')
-rw-r--r-- | gdb/testsuite/gdb.threads/manythreads.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/manythreads.c b/gdb/testsuite/gdb.threads/manythreads.c index a622d99..8cef148 100644 --- a/gdb/testsuite/gdb.threads/manythreads.c +++ b/gdb/testsuite/gdb.threads/manythreads.c @@ -20,7 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <pthread.h> +#ifdef DEBUG #include <stdio.h> +#endif #include <limits.h> void * @@ -28,7 +30,9 @@ thread_function (void *arg) { int x = * (int *) arg; +#ifdef DEBUG printf ("Thread <%d> executing\n", x); +#endif /* DEBUG */ return NULL; } |