* sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
* sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global. * sparcobsd-tdep.c (sparc32obsd_init_abi): Call sparc32nbsd_elf_init_abi. Remove duplicate code.
This commit is contained in:
parent
a7498ae6da
commit
19671c2bed
4 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,10 @@
|
|||
2004-11-29 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
|
||||
* sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
|
||||
* sparcobsd-tdep.c (sparc32obsd_init_abi): Call
|
||||
sparc32nbsd_elf_init_abi. Remove duplicate code.
|
||||
|
||||
* config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
|
||||
* config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
|
||||
* config/sparc/nm-nbsd.h: Remove file.
|
||||
|
|
|
@ -198,6 +198,9 @@ extern void sparc32_sol2_init_abi (struct gdbarch_info info,
|
|||
/* Register offsets for NetBSD. */
|
||||
extern const struct sparc_gregset sparc32nbsd_gregset;
|
||||
|
||||
extern void sparc32nbsd_elf_init_abi (struct gdbarch_info info,
|
||||
struct gdbarch *gdbarch);
|
||||
|
||||
extern struct trad_frame_saved_reg *
|
||||
sparc32nbsd_sigcontext_saved_regs (struct frame_info *next_frame);
|
||||
|
||||
|
|
|
@ -281,7 +281,7 @@ sparc32nbsd_aout_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
|||
sparc32nbsd_init_abi (info, gdbarch);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
sparc32nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
||||
{
|
||||
sparc32nbsd_init_abi (info, gdbarch);
|
||||
|
|
|
@ -147,14 +147,10 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
|||
{
|
||||
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
|
||||
|
||||
/* OpenBSD doesn't support the 128-bit `long double' from the psABI. */
|
||||
set_gdbarch_long_double_bit (gdbarch, 64);
|
||||
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
|
||||
/* OpenBSD/sparc is very similar to NetBSD/sparc ELF. */
|
||||
sparc32nbsd_elf_init_abi (info, gdbarch);
|
||||
|
||||
frame_unwind_append_sniffer (gdbarch, sparc32obsd_sigtramp_frame_sniffer);
|
||||
|
||||
set_solib_svr4_fetch_link_map_offsets
|
||||
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue