New unit sparc-sol-thread.c extracted from sol-thread.c

Moving some sparc-specific routines out of sol-thread.c into their
own (new) file.

gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Move these functions to sparc-sol-thread.c.
        * sparc-sol-thread.c: New file.
        * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
        sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
        configurations.
        * configure: Regenerate.
This commit is contained in:
Joel Brobecker
2012-09-27 12:53:44 +00:00
parent d292a9723d
commit 43c75337b6
5 changed files with 67 additions and 28 deletions

View File

@@ -1719,6 +1719,13 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
[Define if using Solaris thread debugging.])
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
# On SPARC CPUs, we also need to build sparc-sol-thread.
case ${host_cpu} in
sparc*)
CONFIG_OBS="${CONFIG_OBS} sparc-sol-thread.o"
CONFIG_SRCS="${CONFIG_SRCS} sparc-sol-thread.c"
;;
esac
AC_CHECK_LIB(dl, dlopen)
CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
# Sun randomly tweaked the prototypes in <proc_service.h>