summaryrefslogtreecommitdiff
path: root/gdb/i386v4-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-10-31 15:35:08 +0000
committerMark Kettenis <kettenis@gnu.org>2004-10-31 15:35:08 +0000
commit41df370a712230da4a479995d9edca2a65358072 (patch)
treea87c2d878302543dbac0153ae928d460ec325a6d /gdb/i386v4-nat.c
parent6507d0a1dc39c323d427daf6089aac4156592795 (diff)
downloadgdb-41df370a712230da4a479995d9edca2a65358072.tar.gz
* i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
(fill_fpregset): Do not compile for 64-bit systems. * i386-sol2-nat.c: Don't include "i386v4-nat.c". * Makefile.in (i386-sol2-nat.o): Update dependencies. * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
Diffstat (limited to 'gdb/i386v4-nat.c')
-rw-r--r--gdb/i386v4-nat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/i386v4-nat.c b/gdb/i386v4-nat.c
index a2f3cd323ea..c21b9ea1d55 100644
--- a/gdb/i386v4-nat.c
+++ b/gdb/i386v4-nat.c
@@ -37,7 +37,9 @@
#include <sys/procfs.h>
-/* Prototypes for supply_gregset etc. */
+/* We must not compile this code for 64-bit Solaris x86. */
+#if !defined (PR_MODEL_NATIVE) || (PR_MODEL_NATIVE == PR_MODEL_ILP32)
+
#include "gregset.h"
/* The `/proc' interface divides the target machine's register set up
@@ -158,4 +160,6 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
#endif /* HAVE_FPREGSET_T */
+#endif /* not 64-bit. */
+
#endif /* HAVE_SYS_PROCFS_H */