Bug 22185 - Obsolete/remove support for Solaris < 10
Summary: Obsolete/remove support for Solaris < 10
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 8.1
Assignee: Rainer Orth
URL: https://sourceware.org/ml/gdb-patches...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-22 09:01 UTC by Rainer Orth
Modified: 2017-09-26 13:56 UTC (History)
0 users

See Also:
Host:
Target: *-*-solaris2.[01], *-*-solaris2.[2-9]*
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2017-09-22 09:01:14 UTC
This is tracking bug according to https://sourceware.org/gdb/wiki/Internals%20Obsoleting-code:

GCC has obsoleted/removed support for Solaris 9 in GCC 4.9/5 in 2013:

    https://gcc.gnu.org/gcc-4.9/changes.html
    https://gcc.gnu.org/ml/gcc-patches/2013-05/msg00728.html

While gdb 7.12.1 can still be built (only with --disable-build-with-cxx), the 
8.0 branch and trunk cannot, and it seems a waste of time to even try to make it
work.

Therefore, support will be removed for the gdb 8.1 release.

  Rainer
Comment 1 Rainer Orth 2017-09-22 14:45:55 UTC
Patch posted.
Comment 2 Sourceware Commits 2017-09-26 13:21:59 UTC
The master branch has been updated by Rainer Orth <ro@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=281c4447738409888d9659924937da182a65b4e1

commit 281c4447738409888d9659924937da182a65b4e1
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Sep 26 15:19:10 2017 +0200

    Remove support for Solaris < 10 (PR gdb/22185)
    
    Given that GCC has obsoleted/removed support for Solaris 9 in GCC 4.9/5 in 2013:
    
        https://gcc.gnu.org/gcc-4.9/changes.html
        https://gcc.gnu.org/ml/gcc-patches/2013-05/msg00728.html
    
    and the last gdb version that can be compiled with gcc 4.9 is 7.12.1 only when
    configured with --disable-build-with-cxx, it's time to obsolete/remove support
    for Solaris < 10.
    
    This patch does this, simplifying configure.nat along the way (only a single
    sol2 configuration with variants for i386 and sparc).
    
    Some configure checks for older Solaris versions can go, too, and the check
    for libthread_db.so.1 removed:
    
    * Since Solaris 10, dlopen has moved to libc and libdl.so is just a
      filter on ld.so.1, so no need to check.
    
    * $RDYNAMIC is already handled above (and is a no-op with Solaris ld
      anyway).
    
    Both proc-service.c and sol-thread.c lose support for (Solaris-only)
    PROC_SERVICE_IS_OLD.
    
    The attached revised patch has been tested on sparcv9-sun-solaris2.10,
    sparcv9-sun-solaris2.11.4, amd64-pc-solaris2.10, amd64-pc-solaris2.11.4,
    and x86_64-pc-linux-gnu.
    
    I've also started an i386-pc-solaris2.9 build to check that it really
    stops as expected.
    
    	PR gdb/22185
    	* configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
    	obsolete.
    	Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
    	Remove i386sol2 support.
    	* configure.nat <i386sol2>: Remove.
    	<sol2-64>: Fold into ...
    	<sol2>: ... this.
    	Move common settings to default section.
    	Add sol-thread.o.
    	* configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
    	x86_64-*-solaris2.1[0-9]*>: Rename to ...
    	<i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
    	<i[34567]86-*-solaris*>: Remove.
    	<sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
    
    	* configure.ac: Remove wctype in libw check.
    	(_MSE_INT_H): Don't define on Solaris 7-9.
    	<solaris*>: Remove libthread_db.so.1 check.
    	* configure: Regenerate.
    	* config.in: Regenerate.
    
    	* proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
    	(gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
    	(gdb_ps_size_t): Remove.
    	Use base types in users.
    	* sol-thread.c: Likewise, also for gdb_ps_addr_t.
    
    	* NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
Comment 3 Rainer Orth 2017-09-26 13:56:55 UTC
gdb-announce, gdb FYI posted

  https://sourceware.org/ml/gdb/2017-09/msg00128.html

Closing.
  Rainer