diff options
author | Pedro Alves <palves@redhat.com> | 2014-10-17 11:18:59 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-10-17 11:18:59 +0100 |
commit | 32a8097ba5dd6ddb71c0fb2fccbac262c371846a (patch) | |
tree | e27e608bcc1e35761015414d8243a1afb559d8ff /gdb/testsuite | |
parent | 80134cf5b3ca1f75a96af1856fdaad29ad1f57aa (diff) | |
download | gdb-32a8097ba5dd6ddb71c0fb2fccbac262c371846a.zip gdb-32a8097ba5dd6ddb71c0fb2fccbac262c371846a.tar.gz gdb-32a8097ba5dd6ddb71c0fb2fccbac262c371846a.tar.bz2 |
Delete Tru64 support
This commit does most of the mechanical removal. IOW, the easy part.
procfs.c isn't touched beyond removing a couple obvious bits that are
guarded by a couple macros defined in config/alpha/nm-osf3.h. Going
beyond that for procfs.c & co would be a harder excision that
potentially affects Solaris.
Some comments in the generic alpha code ABIs that may still be
relevant and I wouldn't know what to do with them. That can always be
done on a separate pass, preferably by someone who can test on alpha.
A couple other spots have references to OSF/Tru64 and related files
being removed, but it felt like removing them would make things worse,
not better. We can revisit those when we next need to touch that
code.
I didn't remove a reference to osf in testsuite/lib/future.exp, as I
believe that code is imported from DejaGNU.
Built and tested on x86_64 Fedora 20, with --enable-targets=all.
Tested that building for --target=alpha-osf3 on x86_64 Fedora 20
fails with:
checking for default auto-load directory... $debugdir:$datadir/auto-load
checking for default auto-load safe-path... $debugdir:$datadir/auto-load
*** Configuration alpha-unknown-osf3 is obsolete.
*** Support has been REMOVED.
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `build-osf'
make: *** [all] Error 2
gdb/
2014-10-17 Pedro Alves <palves@redhat.com>
* Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
(HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
(ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
solib-osf.c.
* NEWS: Mention that support for alpha*-*-osf* has been removed.
* ada-lang.h [__alpha__ && __osf__]
(ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
* alpha-nat.c, alpha-osf1-tdep.c: Delete files.
* alpha-tdep.c (alpha_gdbarch_init): Remove reference to
GDB_OSABI_OSF1.
* config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
files.
* config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
(config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
* configure: Regenerate.
* configure.ac: Remove references to osf.
* configure.host: Handle alpha*-*-osf* in the obsolete hosts
section. Remove all other references to osf.
* configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
Remove all other references to osf.
* dec-thread.c: Delete file.
* defs.h (GDB_OSABI_OSF1): Delete.
* inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
defined.
* osabi.c (gdb_osabi_names): Delete "OSF/1".
* procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
Delete code.
(unconditionally_kill_inferior)
[PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
* solib-osf.c: Delete file.
gdb/testsuite/
2014-10-17 Pedro Alves <palves@redhat.com>
* gdb.base/callfuncs.exp: emove references to osf.
* gdb.base/sigall.exp: Likewise.
* gdb.gdb/selftest.exp: Likewise.
* gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
* gdb.mi/non-stop.c: Likewise.
* gdb.mi/pthreads.c: Likewise.
* gdb.reverse/sigall-precsave.exp: Likewise.
* gdb.reverse/sigall-reverse.exp: Likewise.
* gdb.threads/pthreads.c: Likewise.
* gdb.threads/pthreads.exp: Likewise.
gdb/doc/
2014-10-17 Pedro Alves <palves@redhat.com>
* gdb.texinfo (Ada Tasks and Core Files): Delete mention of Tru64.
(SVR4 Process Information): Delete mention of OSF/1.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 13 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/callfuncs.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/sigall.exp | 11 | ||||
-rw-r--r-- | gdb/testsuite/gdb.gdb/selftest.exp | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/non-stop.c | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/pthreads.c | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/sigall-precsave.exp | 11 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/sigall-reverse.exp | 11 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.c | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.exp | 3 |
11 files changed, 21 insertions, 55 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2eab6ab..aa952b5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2014-10-17 Pedro Alves <palves@redhat.com> + + * gdb.base/callfuncs.exp: emove references to osf. + * gdb.base/sigall.exp: Likewise. + * gdb.gdb/selftest.exp: Likewise. + * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise. + * gdb.mi/non-stop.c: Likewise. + * gdb.mi/pthreads.c: Likewise. + * gdb.reverse/sigall-precsave.exp: Likewise. + * gdb.reverse/sigall-reverse.exp: Likewise. + * gdb.threads/pthreads.c: Likewise. + * gdb.threads/pthreads.exp: Likewise. + 2014-10-17 Yao Qi <yao@codesourcery.com> * gdb.base/commands.exp (gdbvar_complex_if_while_test): Don't diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index a8c8241..cff8bd0 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -122,7 +122,7 @@ proc do_function_calls {} { if $prototypes then { setup_xfail "sparc-*-*" "mips*-*-*" 5318 if { ! [test_compiler_info gcc-*-*] } then { - setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318 + setup_xfail "i*86-*-sysv4*" 5318 } } diff --git a/gdb/testsuite/gdb.base/sigall.exp b/gdb/testsuite/gdb.base/sigall.exp index 7a4007f..42927b6 100644 --- a/gdb/testsuite/gdb.base/sigall.exp +++ b/gdb/testsuite/gdb.base/sigall.exp @@ -54,17 +54,6 @@ proc test_one_sig {nextsig} { "Continuing.*Program received signal SIG$esig.*" \ "get signal $esig" } - if [ istarget "alpha-dec-osf3*" ] then { - # OSF/1-3.x is unable to continue with a job control stop signal. - # The inferior remains stopped without an event of interest - # and GDB waits forever for the inferior to stop on an event - # of interest. Work around the kernel bug. - if { $thissig == "TSTP" || $thissig == "TTIN" || $thissig == "TTOU" } { - setup_xfail "alpha-dec-osf3*" - fail "cannot continue from signal $thissig" - set need_another_continue 0 - } - } if $need_another_continue then { if { $thissig == "URG" } { diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 91142fe..cd066f4 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -459,15 +459,6 @@ proc test_with_self { executable } { -re "#0.*(read|poll).*in main \\(.*\\) at .*gdb\\.c.*$gdb_prompt $" { pass "$description" } - -re ".*$gdb_prompt $" { - # On the alpha, we hit the infamous problem about gdb - # being unable to get the frame pointer (mentioned in - # gdb/README). As it is intermittent, there is no way to - # XFAIL it which will give us an XPASS if the problem goes - # away. - setup_xfail "alpha*-*-osf*" - fail "$description" - } } diff --git a/gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp b/gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp index 75d25c8..a7f0ed4 100644 --- a/gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp +++ b/gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp @@ -208,7 +208,7 @@ proc do_function_calls {} { if $prototypes then { setup_xfail "sparc-*-*" "mips*-*-*" 5318 if {!$gcc_compiled} then { - setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318 + setup_xfail "i*86-*-sysv4*" 5318 } } gdb_test "p t_float_values2(3.14159,float_val2)" " = 1" diff --git a/gdb/testsuite/gdb.mi/non-stop.c b/gdb/testsuite/gdb.mi/non-stop.c index 67b68aa..79ec562 100644 --- a/gdb/testsuite/gdb.mi/non-stop.c +++ b/gdb/testsuite/gdb.mi/non-stop.c @@ -20,11 +20,11 @@ #include <stdlib.h> #include <pthread.h> -/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create +/* 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 (__osf__) || defined (__hpux__) +#if defined (__hpux__) #define PTHREAD_CREATE_ARG2(arg) arg #define PTHREAD_CREATE_NULL_ARG2 null_attr static pthread_attr_t null_attr; diff --git a/gdb/testsuite/gdb.mi/pthreads.c b/gdb/testsuite/gdb.mi/pthreads.c index d6cb897..933b31a 100644 --- a/gdb/testsuite/gdb.mi/pthreads.c +++ b/gdb/testsuite/gdb.mi/pthreads.c @@ -24,11 +24,11 @@ #include <stdlib.h> #include <pthread.h> -/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create +/* 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 (__osf__) || defined (__hpux__) +#if defined (__hpux__) #define PTHREAD_CREATE_ARG2(arg) arg #define PTHREAD_CREATE_NULL_ARG2 null_attr static pthread_attr_t null_attr; diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp index 4a4695e..dcae868 100644 --- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp +++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp @@ -65,17 +65,6 @@ proc test_one_sig {nextsig} { } } } - if [ istarget "alpha-dec-osf3*" ] then { - # OSF/1-3.x is unable to continue with a job control stop signal. - # The inferior remains stopped without an event of interest - # and GDB waits forever for the inferior to stop on an event - # of interest. Work around the kernel bug. - if { $thissig == "TSTP" || $thissig == "TTIN" || $thissig == "TTOU" } { - setup_xfail "alpha-dec-osf3*" - fail "cannot continue from signal $thissig" - set need_another_continue 0 - } - } if $need_another_continue then { if { $thissig == "URG" } { diff --git a/gdb/testsuite/gdb.reverse/sigall-reverse.exp b/gdb/testsuite/gdb.reverse/sigall-reverse.exp index fffc94e..0194ba4 100644 --- a/gdb/testsuite/gdb.reverse/sigall-reverse.exp +++ b/gdb/testsuite/gdb.reverse/sigall-reverse.exp @@ -64,17 +64,6 @@ proc test_one_sig {nextsig} { } } } - if [ istarget "alpha-dec-osf3*" ] then { - # OSF/1-3.x is unable to continue with a job control stop signal. - # The inferior remains stopped without an event of interest - # and GDB waits forever for the inferior to stop on an event - # of interest. Work around the kernel bug. - if { $thissig == "TSTP" || $thissig == "TTIN" || $thissig == "TTOU" } { - setup_xfail "alpha-dec-osf3*" - fail "cannot continue from signal $thissig" - set need_another_continue 0 - } - } if $need_another_continue then { if { $thissig == "URG" } { diff --git a/gdb/testsuite/gdb.threads/pthreads.c b/gdb/testsuite/gdb.threads/pthreads.c index 0bfc618..ac0f133 100644 --- a/gdb/testsuite/gdb.threads/pthreads.c +++ b/gdb/testsuite/gdb.threads/pthreads.c @@ -23,11 +23,11 @@ #include <stdlib.h> #include <pthread.h> -/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create +/* 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 (__osf__) || defined (__hpux__) +#if defined (__hpux__) #define PTHREAD_CREATE_ARG2(arg) arg #define PTHREAD_CREATE_NULL_ARG2 null_attr static pthread_attr_t null_attr; @@ -124,13 +124,11 @@ main(argc, argv) foo (1, 2, 3); -#ifndef __osf__ if (pthread_attr_init (&attr)) { perror ("pthread_attr_init 1"); exit (1); } -#endif #ifdef PTHREAD_SCOPE_SYSTEM if (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM)) diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp index 4900e14..990dfaa 100644 --- a/gdb/testsuite/gdb.threads/pthreads.exp +++ b/gdb/testsuite/gdb.threads/pthreads.exp @@ -266,9 +266,7 @@ proc check_backtraces {} { } } -setup_xfail "alpha-*-osf*" if [runto_main] then { - clear_xfail "alpha-*-osf*" if [test_startup] then { if [check_control_c] then { warning "Could not stop child with ^C; skipping rest of tests.\n" @@ -277,4 +275,3 @@ if [runto_main] then { check_backtraces } } -clear_xfail "alpha-*-osf*" |