X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fppc-obsd-tdep.c;h=5f70d35180c24198ab64d655a5a52bed90ddfdf1;hb=24051bbe843abcdcc108542da195e009c3f19910;hp=efc785f9fd48b23ebc3458c2e2502a473425e5dc;hpb=1736a7bd96e8927c3f889a35f9153df4fd19d833;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ppc-obsd-tdep.c b/gdb/ppc-obsd-tdep.c index efc785f9fd..5f70d35180 100644 --- a/gdb/ppc-obsd-tdep.c +++ b/gdb/ppc-obsd-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for OpenBSD/powerpc. - Copyright (C) 2004-2016 Free Software Foundation, Inc. + Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -88,7 +88,7 @@ ppcobsd_iterate_over_regset_sections (struct gdbarch *gdbarch, void *cb_data, const struct regcache *regcache) { - cb (".reg", 412, &ppcobsd_gregset, NULL, cb_data); + cb (".reg", 412, 412, &ppcobsd_gregset, NULL, cb_data); } @@ -260,13 +260,10 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_ppcobsd_tdep (void); +void _initialize_ppcobsd_tdep (); void -_initialize_ppcobsd_tdep (void) +_initialize_ppcobsd_tdep () { gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD, ppcobsd_init_abi); @@ -293,10 +290,6 @@ _initialize_ppcobsd_tdep (void) ppcobsd_reg_offsets.f0_offset = 128; ppcobsd_reg_offsets.fpscr_offset = -1; - /* AltiVec registers. */ - ppcobsd_reg_offsets.vr0_offset = 0; - ppcobsd_reg_offsets.vscr_offset = 512; - ppcobsd_reg_offsets.vrsave_offset = 520; } if (ppcobsd_fpreg_offsets.fpscr_offset == 0)