mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* config/nm-nbsd.h (link_object, lo_name, etc): Move to here
from config/nm-nbsd.h. * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here from config/sparc/tm-nbsd.h.
This commit is contained in:
@@ -22,6 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#define NM_NBSD_H
|
||||
|
||||
/* Get generic NetBSD native definitions. */
|
||||
|
||||
#include "nm-nbsd.h"
|
||||
|
||||
#define FETCH_INFERIOR_REGISTERS
|
||||
@@ -30,4 +31,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)
|
||||
|
||||
/* Make things match up with what is expected in sparc-nat.c. */
|
||||
|
||||
#define regs trapframe
|
||||
#define fp_status fpstate
|
||||
|
||||
#define r_g1 tf_global[1]
|
||||
#define r_ps tf_psr
|
||||
#define r_pc tf_pc
|
||||
#define r_npc tf_npc
|
||||
#define r_y tf_y
|
||||
|
||||
#define fpu fpstate
|
||||
#define fpu_regs fs_regs
|
||||
#define fpu_fsr fs_fsr
|
||||
#define fpu_fr fs_regs
|
||||
#define Fpu_fsr fs_fsr
|
||||
#define FPU_FSR_TYPE int
|
||||
|
||||
#define PTRACE_GETREGS PT_GETREGS
|
||||
#define PTRACE_GETFPREGS PT_GETFPREGS
|
||||
#define PTRACE_SETREGS PT_SETREGS
|
||||
#define PTRACE_SETFPREGS PT_SETFPREGS
|
||||
|
||||
#endif /* NM_NBSD_H */
|
||||
|
||||
@@ -21,28 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
#define TM_NBSD_H
|
||||
|
||||
#include "sparc/tm-sparc.h"
|
||||
|
||||
#include "tm-nbsd.h"
|
||||
|
||||
/* make things match up with what is expected in sparc-nat.c */
|
||||
#define regs trapframe
|
||||
#define fp_status fpstate
|
||||
|
||||
#define r_g1 tf_global[1]
|
||||
#define r_ps tf_psr
|
||||
#define r_pc tf_pc
|
||||
#define r_npc tf_npc
|
||||
#define r_y tf_y
|
||||
|
||||
#define fpu fpstate
|
||||
#define fpu_regs fs_regs
|
||||
#define fpu_fsr fs_fsr
|
||||
#define fpu_fr fs_regs
|
||||
#define Fpu_fsr fs_fsr
|
||||
#define FPU_FSR_TYPE int
|
||||
|
||||
#define PTRACE_GETREGS PT_GETREGS
|
||||
#define PTRACE_GETFPREGS PT_GETFPREGS
|
||||
#define PTRACE_SETREGS PT_SETREGS
|
||||
#define PTRACE_SETFPREGS PT_SETFPREGS
|
||||
|
||||
#endif /* TM_NBSD_H */
|
||||
|
||||
Reference in New Issue
Block a user