This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] HAVE_R_FS and HAVE_R_GS
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] HAVE_R_FS and HAVE_R_GS
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Mon, 5 Jun 2000 21:10:20 +0200
Andrew suggested changing these to somewhat longer names (checked in).
Mark
2000-06-05 Mark Kettenis <kettenis@gnu.org>
* acconfig.h, configure.in, i386bsd.c (HAVE_STRUCT_REG_R_FS):
Renamed from HAVE_R_FS.
(HAVE_STRUCT_REG_GS): Renamed from HAVE_R_GS.
* configure, config.in: Regenerated.
Index: acconfig.h
===================================================================
RCS file: /cvs/src/src/gdb/acconfig.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- acconfig.h 2000/05/25 17:18:01 1.7
+++ acconfig.h 2000/06/05 18:59:40 1.8
@@ -2,10 +2,10 @@
#undef _MSE_INT_H
/* Define if your struct reg has r_fs. */
-#undef HAVE_R_FS
+#undef HAVE_STRUCT_REG_R_FS
/* Define if your struct reg has r_gs. */
-#undef HAVE_R_GS
+#undef HAVE_STRUCT_REG_R_GS
/* Define if pstatus_t type is available */
#undef HAVE_PSTATUS_T
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -p -r1.31 -r1.32
--- configure.in 2000/06/03 05:04:14 1.31
+++ configure.in 2000/06/05 18:59:40 1.32
@@ -116,17 +116,17 @@ AC_FUNC_ALLOCA
# See if machine/reg.h supports the %fs and %gs i386 segment registers.
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
-AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_r_fs,
+AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_reg_r_fs,
[AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_fs;],
-gdb_cv_struct_r_fs=yes, gdb_cv_struct_r_fs=no)])
-if test $gdb_cv_struct_r_fs = yes; then
- AC_DEFINE(HAVE_R_FS)
+gdb_cv_struct_reg_r_fs=yes, gdb_cv_struct_reg_r_fs=no)])
+if test $gdb_cv_struct_reg_r_fs = yes; then
+ AC_DEFINE(HAVE_STRUCT_REG_R_FS)
fi
-AC_CACHE_CHECK([for r_gs in struct reg], gdb_cv_struct_r_gs,
+AC_CACHE_CHECK([for r_gs in struct reg], gdb_cv_struct_reg_r_gs,
[AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_gs;],
-gdb_cv_struct_r_gs=yes, gdb_cv_struct_r_gs=no)])
-if test $gdb_cv_struct_r_gs = yes; then
- AC_DEFINE(HAVE_R_GS)
+gdb_cv_struct_reg_r_gs=yes, gdb_cv_struct_reg_r_gs=no)])
+if test $gdb_cv_struct_reg_r_gs = yes; then
+ AC_DEFINE(HAVE_STRUCT_REG_R_GS)
fi
dnl See if ptrace.h provides the PTRACE_GETREGS request.
Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- i386bsd-nat.c 2000/05/31 23:14:19 1.2
+++ i386bsd-nat.c 2000/06/05 18:59:40 1.3
@@ -78,12 +78,12 @@ static int reg_offset[] =
REG_OFFSET (r_ss),
REG_OFFSET (r_ds),
REG_OFFSET (r_es),
-#ifdef HAVE_R_FS
+#ifdef HAVE_STRUCT_REG_R_FS
REG_OFFSET (r_fs),
#else
-1,
#endif
-#ifdef HAVE_R_GS
+#ifdef HAVE_STRUCT_REG_R_GS
REG_OFFSET (r_gs)
#else
-1