diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-12-21 12:51:54 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-12-21 12:51:54 -0500 |
commit | 3ca22649a6dfeb71058c33be4d0542b98f1f0ff5 (patch) | |
tree | 6a0632f38114ccc566947bdb73d856d81fa98ad7 /gdb/testsuite/gdb.mi/pthreads.c | |
parent | b6304613bf0bb1c188bed30eb3df6e3e154b4196 (diff) | |
download | fsf-binutils-gdb-3ca22649a6dfeb71058c33be4d0542b98f1f0ff5.zip fsf-binutils-gdb-3ca22649a6dfeb71058c33be4d0542b98f1f0ff5.tar.gz fsf-binutils-gdb-3ca22649a6dfeb71058c33be4d0542b98f1f0ff5.tar.bz2 |
Remove HP-UX references fom testsuite
This patch removes all special cases for HP-UX, for which support has
been removed earlier, that I found in the testsuite. Note that the hppa
architecture != HP-UX, since other OSes can run on hppa, so I tried to
leave everything that is not HP-UX specific.
Two complete tests were completely HP-UX specific, so I removed them.
I ran the testsuite on Linux x86-64, native and native-gdbserver, and
noticed no regressions.
gdb/testsuite/ChangeLog:
* gdb.asm/asm-source.exp: Remove HP-UX references.
* gdb.base/annota1.exp: Likewise.
* gdb.base/annota3.exp: Likewise.
* gdb.base/attach.exp: Likewise.
* gdb.base/bigcore.exp: Likewise.
* gdb.base/break.exp: Likewise.
* gdb.base/call-ar-st.exp: Likewise.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/catch-fork-static.exp: Likewise.
* gdb.base/display.exp: Likewise.
* gdb.base/foll-exec-mode.exp: Likewise.
* gdb.base/foll-exec.exp: Likewise.
* gdb.base/foll-fork.exp: Likewise.
* gdb.base/foll-vfork.exp: Likewise.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/hbreak2.exp: Likewise.
* gdb.base/inferior-died.exp: Likewise.
* gdb.base/interrupt.exp: Likewise.
* gdb.base/multi-forks.exp: Likewise.
* gdb.base/nodebug.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/solib1.c: Likewise.
* gdb.base/step-test.exp: Likewise.
* gdb.mi/non-stop.c: Likewise.
* gdb.mi/pthreads.c: Likewise.
* gdb.multi/bkpt-multi-exec.ex: Likewise.
* gdb.threads/pthreads.c: Likewise.
* gdb.threads/staticthreads.exp: Likewise.
* lib/future.exp: Likewise.
* lib/gdb.exp: Likewise.
* gdb.base/so-indr-cl.c: Remove.
* gdb.base/so-indr-cl.exp: Likewise.
* gdb.base/solib.c: Likewise.
* gdb.base/solib.exp: Likewise.
* gdb.base/solib2.c: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.mi/pthreads.c')
-rw-r--r-- | gdb/testsuite/gdb.mi/pthreads.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gdb/testsuite/gdb.mi/pthreads.c b/gdb/testsuite/gdb.mi/pthreads.c index 70fd521..e5d7b61 100644 --- a/gdb/testsuite/gdb.mi/pthreads.c +++ b/gdb/testsuite/gdb.mi/pthreads.c @@ -25,19 +25,6 @@ #include <pthread.h> #include <unistd.h> -/* Under HPUX 10, the second arg of pthread_create - is prototyped to be just a "pthread_attr_t", while under Solaris it - is a "pthread_attr_t *". Arg! */ - -#if defined (__hpux__) -#define PTHREAD_CREATE_ARG2(arg) arg -#define PTHREAD_CREATE_NULL_ARG2 null_attr -static pthread_attr_t null_attr; -#else -#define PTHREAD_CREATE_ARG2(arg) &arg -#define PTHREAD_CREATE_NULL_ARG2 NULL -#endif - void * routine (void *arg) { @@ -64,7 +51,7 @@ create_thread (void) { pthread_t tid; - if (pthread_create (&tid, PTHREAD_CREATE_NULL_ARG2, routine, (void *) 0xfeedface)) + if (pthread_create (&tid, NULL, routine, (void *) 0xfeedface)) { perror ("pthread_create 1"); exit (1); |