diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-05-27 01:05:16 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-05-27 01:05:16 +0000 |
commit | 93d5585d5b48a05137be86e87858665068fc81c2 (patch) | |
tree | c0e78081335d77dfe43e2f7a7883f2131fb000ee /gdb/config/ns32k/tm-nbsd.h | |
parent | d95b65031eba12e1e3cb083add23fd4e4396fe4d (diff) | |
download | gdb-93d5585d5b48a05137be86e87858665068fc81c2.zip gdb-93d5585d5b48a05137be86e87858665068fc81c2.tar.gz gdb-93d5585d5b48a05137be86e87858665068fc81c2.tar.bz2 |
* ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
target.s, arch-utils.h, ns32k-tdep.h. Make many functions
static. Rename some register numbers to put them in ns32k-tdep
private namespace.
(ns32k_get_saved_register, ns32k_gdbarch_init_32082,
ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
functions.
(_initialize_ns32k_tdep): Use gdbarch_register.
* ns32k-tdep.h: New file.
* ns32knbsd-tdep.c: New file.
* config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
* config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
(IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
REGISTER_BYTES, REGISTER_BYTE): Remove.
* config/ns32k/tm-ns32k.h: New file.
* config/ns32k/tm-umax.h: Remove.
Diffstat (limited to 'gdb/config/ns32k/tm-nbsd.h')
-rw-r--r-- | gdb/config/ns32k/tm-nbsd.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/gdb/config/ns32k/tm-nbsd.h b/gdb/config/ns32k/tm-nbsd.h index 5081c35..88b4e22 100644 --- a/gdb/config/ns32k/tm-nbsd.h +++ b/gdb/config/ns32k/tm-nbsd.h @@ -27,33 +27,11 @@ /* Most definitions from umax could be used. */ -#include "ns32k/tm-umax.h" - -/* Return non-zero if we are in a shared library trampoline code stub. */ -#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \ - (name && !strcmp(name, "_DYNAMIC")) +#include "ns32k/tm-ns32k.h" /* Saved Pc. Get it from sigcontext if within sigtramp. */ /* Offset to saved PC in sigcontext, from <machine/signal.h>. */ #define SIGCONTEXT_PC_OFFSET 20 -/* tm-umax.h assumes a 32082 fpu. We have a 32382 fpu. */ - -#undef REGISTER_NAME -#define REGISTER_NAME(REGNUM) ns32k_register_name_32382((REGNUM)) - -#undef NUM_REGS -#define NUM_REGS 29 - -/* Total amount of space needed to store our copies of the machine's - register state, the array `registers'. */ -#undef REGISTER_BYTES -#define REGISTER_BYTES \ - ((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \ - + 8 * REGISTER_RAW_SIZE(LP0_REGNUM)) - -#undef REGISTER_BYTE -#define REGISTER_BYTE(N) ns32k_register_byte_32382 ((N)) - #endif /* TM_NBSD_H */ |