diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-15 13:35:27 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-15 13:35:27 +0000 |
commit | 221ebec0192984b40a99c4d3842bfa502d272866 (patch) | |
tree | d192396b9e32c40e00d3d64cac44869509d7c2d1 /gdb/config/arm | |
parent | 2347580fdbe90ef3d2e9a86c838aaf2ef14c789c (diff) | |
download | gdb-221ebec0192984b40a99c4d3842bfa502d272866.tar.gz |
* arm-tdep.h (enum arm_abi): New enum.
(struct gdbarch_tdep): New structure.
(LOWEST_PC): Provide a default.
(arm_gdbarch_register_os_abi): Declare new function.
* arm-tdep.c (arm_abi_names): New array.
(process_note_abi_tag_sections): New function.
(get_elfosabi): New function.
(arm_gdbarch_register_os_abi): New function.
(arm_gdbarch_init): Try to determine the ABI of the inferior. If
support for that ABI has been built in, then call the appropriate
configuration routine. Use gdbarch_num_regs() to get the number
of registers.
(arm_dump_tdep): New function.
(arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
place-holder functions.
(_initialize_arm_tdep): Register them.
* config/arm/tm-arm.h (LOWEST_PC): Delete.
* armnbsd-tdep.c: New file.
* Makefile.in (armnbsd-tdep.o): Add dependencies.
* config/arm/nbsd.mt (TDEPFILES): Add it.
* config/arm/tm-nbsd.h (LOWEST_PC): Delete.
* armnbsd-nat.c: Include regcache.h.
* Makefile.in (armnbsd-nat.o): Update dependency list.
* arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
Diffstat (limited to 'gdb/config/arm')
-rw-r--r-- | gdb/config/arm/nbsd.mt | 2 | ||||
-rw-r--r-- | gdb/config/arm/tm-arm.h | 3 | ||||
-rw-r--r-- | gdb/config/arm/tm-nbsd.h | 4 |
3 files changed, 1 insertions, 8 deletions
diff --git a/gdb/config/arm/nbsd.mt b/gdb/config/arm/nbsd.mt index 54ff5fdd6a7..30aff6375f4 100644 --- a/gdb/config/arm/nbsd.mt +++ b/gdb/config/arm/nbsd.mt @@ -1,3 +1,3 @@ # Target: ARM running NetBSD -TDEPFILES= arm-tdep.o solib.o solib-svr4.o +TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o TM_FILE= tm-nbsd.h diff --git a/gdb/config/arm/tm-arm.h b/gdb/config/arm/tm-arm.h index 27a9c8b0358..77cae556566 100644 --- a/gdb/config/arm/tm-arm.h +++ b/gdb/config/arm/tm-arm.h @@ -70,9 +70,6 @@ #define CALL_DUMMY_BREAKPOINT_OFFSET arm_call_dummy_breakpoint_offset() extern int arm_call_dummy_breakpoint_offset (void); -/* The first 0x20 bytes are the trap vectors. */ -#define LOWEST_PC 0x20 - #define COERCE_FLOAT_TO_DOUBLE(formal, actual) (standard_coerce_float_to_double (formal, actual)) #endif /* TM_ARM_H */ diff --git a/gdb/config/arm/tm-nbsd.h b/gdb/config/arm/tm-nbsd.h index 0eedfe20dda..c55cc5a312c 100644 --- a/gdb/config/arm/tm-nbsd.h +++ b/gdb/config/arm/tm-nbsd.h @@ -27,10 +27,6 @@ #define JB_ELEMENT_SIZE sizeof(long) /* jmp_buf[_JBLEN] is array of ints */ #define JB_PC 24 /* Setjmp()'s return PC saved here */ -/* The first page is not writeable in NetBSD. */ -#undef LOWEST_PC -#define LOWEST_PC 0x8000 - /* Return non-zero if inside a shared-library entry stub. */ #undef IN_SOLIB_CALL_TRAMPOLINE #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \ |