summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h13
-rw-r--r--gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh2
2 files changed, 14 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h b/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h
new file mode 100644
index 00000000000..cc6ec7737a4
--- /dev/null
+++ b/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h
@@ -0,0 +1,13 @@
+#ifndef NM_OBSD64_H
+#define NM_OBSD64_H
+
+#define SVR4_SHARED_LIBS
+
+/* Before storing, read all the registers. (see inftarg.c) */
+#define CHILD_PREPARE_TO_STORE() \
+ read_register_bytes (0, NULL, REGISTER_BYTES)
+
+/* Get generic OpenBSD native definitions. */
+#include "nm-obsd.h"
+
+#endif /* NM_OBSD64_H */
diff --git a/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh b/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh
index 4d9c491a907..72077d6f35e 100644
--- a/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh
+++ b/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh
@@ -1,7 +1,7 @@
# Host: UltraSparc, running OpenBSD
XDEPFILES= ser-tcp.o
XM_FILE= xm-obsd.h
-NAT_FILE= nm-obsd.h
+NAT_FILE= nm-obsd64.h
NAT_CLIBS= -lkvm
NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o kcore-nbsd.o sp64nbsd-nat.o solib.o