This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] autoconfiscate "_SYSCALL32" for solaris
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 11 Apr 2002 11:21:46 -0700
- Subject: [PATCH] autoconfiscate "_SYSCALL32" for solaris
2002-04-11 Michael Snyder <msnyder@redhat.com>
* configure.in: Autoconfiscate _SYSCALL32 define for solaris.
* configure: Regenerate.
* config.in: Regenerate.
* acconfig.h: Add define for _SYSCALL32.
* core-sol2.c: Remove #define _SYSCALL32.
* solib-legacy.c: Remove #define _SYSCALL32.
Index: acconfig.h
===================================================================
RCS file: /cvs/src/src/gdb/acconfig.h,v
retrieving revision 1.17
diff -p -r1.17 acconfig.h
*** acconfig.h 5 Jan 2002 18:36:32 -0000 1.17
--- acconfig.h 11 Apr 2002 18:27:13 -0000
***************
*** 65,70 ****
--- 65,73 ----
/* Define if <sys/link.h> has struct link_map32 */
#undef HAVE_STRUCT_LINK_MAP32
+ /* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */
+ #undef _SYSCALL32
+
/* Define if the prfpregset_t type is broken. */
#undef PRFPREGSET_T_BROKEN
Index: config.in
===================================================================
RCS file: /cvs/src/src/gdb/config.in,v
retrieving revision 1.36
diff -p -r1.36 config.in
*** config.in 15 Mar 2002 00:44:49 -0000 1.36
--- config.in 11 Apr 2002 18:27:13 -0000
***************
*** 93,98 ****
--- 93,101 ----
/* Define if <sys/link.h> has struct link_map32 */
#undef HAVE_STRUCT_LINK_MAP32
+ /* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */
+ #undef _SYSCALL32
+
/* Define if the prfpregset_t type is broken. */
#undef PRFPREGSET_T_BROKEN
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.85
diff -p -r1.85 configure.in
*** configure.in 4 Apr 2002 00:12:41 -0000 1.85
--- configure.in 11 Apr 2002 18:27:13 -0000
*************** if test ${host} = ${target} ; then
*** 409,414 ****
--- 409,415 ----
AC_MSG_RESULT($gdb_cv_have_struct_link_map32)
if test $gdb_cv_have_struct_link_map32 = yes; then
AC_DEFINE(HAVE_STRUCT_LINK_MAP32)
+ AC_DEFINE(_SYSCALL32)
fi
fi
Index: core-sol2.c
===================================================================
RCS file: /cvs/src/src/gdb/core-sol2.c,v
retrieving revision 1.8
diff -p -r1.8 core-sol2.c
*** core-sol2.c 6 Mar 2001 08:21:06 -0000 1.8
--- core-sol2.c 11 Apr 2002 18:27:13 -0000
***************
*** 27,34 ****
This file combines the core register fetching from core-regset.c
and sparc-nat.c to be able to read both flavours. */
- /* for Sparc64 cross Sparc32 */
- #define _SYSCALL32
#include "defs.h"
#if defined (__sparcv9)
--- 27,32 ----
Index: solib-legacy.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-legacy.c,v
retrieving revision 1.5
diff -p -r1.5 solib-legacy.c
*** solib-legacy.c 7 Feb 2002 23:08:55 -0000 1.5
--- solib-legacy.c 11 Apr 2002 18:27:13 -0000
***************
*** 19,25 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
- #define _SYSCALL32 /* for Sparc64 cross Sparc32 */
#include "defs.h"
#include "gdbcore.h"
#include "solib-svr4.h"
--- 19,24 ----