diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-04-01 15:30:14 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-04-01 15:30:14 +0000 |
commit | d280ea7f3a37b9e902ad90730394cd888f855496 (patch) | |
tree | d065ff6d20ea013b473f61ecd0ba239f3f1f2b95 /gnu | |
parent | cdb99e645287e6bddb58644a934eca8ed787a323 (diff) |
sparc64 native defines to compensate for stack bias.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h | 25 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh | 2 |
2 files changed, 26 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..71391ece1c0 --- /dev/null +++ b/gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h @@ -0,0 +1,25 @@ +#ifndef NM_OBSD64_H +#define NM_OBSD64_H + +/* Get generic OpenBSD native definitions. */ +#include "nm-obsd.h" + +/* Before storing, read all the registers. (see inftarg.c) */ +#define CHILD_PREPARE_TO_STORE() \ + read_register_bytes (0, NULL, REGISTER_BYTES) + +/* Compensate for stack bias. */ + +#define TARGET_READ_SP() \ + sparc64_read_sp() + +#define TARGET_READ_FP() \ + sparc64_read_fp() + +#define TARGET_WRITE_SP(val) \ + sparc64_write_sp(val) + +#define TARGET_WRITE_FP(val) \ + sparc64_write_fp(val) + +#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 dbd811c2240..ab7e67b734a 100644 --- a/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh +++ b/gnu/usr.bin/binutils/gdb/config/sparc/obsd64.mh @@ -1,6 +1,6 @@ # 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 |