diff options
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/config/sparc/nm-obsd64.h | 25 |
1 files changed, 25 insertions, 0 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 */ |