summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-04-08 04:57:44 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-04-08 04:57:44 +0000
commitd3c6c882c1ac57537868bfb606624b2c61162647 (patch)
treebee580f0105c87dd1544a68fd5fff093d2de1541 /gnu/usr.bin
parent6ba5ae105a4cad52a2c405a768352c90df1ac6ea (diff)
correct shared libs support in sparc64 gdb; deraadt@ ok.
Diffstat (limited to 'gnu/usr.bin')
-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