diff options
author | Stan Shebs <shebs@codesourcery.com> | 1996-03-06 04:01:02 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1996-03-06 04:01:02 +0000 |
commit | b4692cbc5e7a32aa7d87428771ad7a3436aef666 (patch) | |
tree | 5e1df79de892ad490ea77f21503a33a39ad4e7ce /gdb/config/sparc | |
parent | d009ffd8acc7ab9e70ca096925a9512d944a0232 (diff) | |
download | gdb-b4692cbc5e7a32aa7d87428771ad7a3436aef666.zip gdb-b4692cbc5e7a32aa7d87428771ad7a3436aef666.tar.gz gdb-b4692cbc5e7a32aa7d87428771ad7a3436aef666.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/config/sparc')
-rw-r--r-- | gdb/config/sparc/nm-nbsd.h | 24 | ||||
-rw-r--r-- | gdb/config/sparc/tm-nbsd.h | 23 |
2 files changed, 25 insertions, 22 deletions
diff --git a/gdb/config/sparc/nm-nbsd.h b/gdb/config/sparc/nm-nbsd.h index 0ab5c1a..016772a 100644 --- a/gdb/config/sparc/nm-nbsd.h +++ b/gdb/config/sparc/nm-nbsd.h @@ -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 */ diff --git a/gdb/config/sparc/tm-nbsd.h b/gdb/config/sparc/tm-nbsd.h index 1231728..1a31084 100644 --- a/gdb/config/sparc/tm-nbsd.h +++ b/gdb/config/sparc/tm-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 +#include "tm-nbsd.h" #endif /* TM_NBSD_H */ |