aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64fbsd-tdep.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2013-11-29 17:02:53 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-09-30 09:14:38 +0200
commite5139de88ebbfb9ce9c121e526fa507d0fa4fcea (patch)
tree48c1ef2cf9bfb8d743fb75364c49442a96a628da /gdb/sparc64fbsd-tdep.c
parentc6d41a6f5380624846daca4d9aad5988b3946cbd (diff)
downloadgdb-e5139de88ebbfb9ce9c121e526fa507d0fa4fcea.zip
gdb-e5139de88ebbfb9ce9c121e526fa507d0fa4fcea.tar.gz
gdb-e5139de88ebbfb9ce9c121e526fa507d0fa4fcea.tar.bz2
SPARC: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
For SPARC targets, no longer define the gdbarch method 'regset_from_core_section', but the iterator method instead. gdb/ChangeLog: * sparc-tdep.c (sparc_regset_from_core_section): Remove. (sparc_iterate_over_regset_sections): New. (sparc32_gdbarch_init): Adjust gdbarch initialization. * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD targets. * sparc64fbsd-tdep.c (fbsd-tdep.h): Include. (sparc64fbsd_init_abi): Call fbsd_init_abi. * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set target method 'make_corefile_notes'.
Diffstat (limited to 'gdb/sparc64fbsd-tdep.c')
-rw-r--r--gdb/sparc64fbsd-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/sparc64fbsd-tdep.c b/gdb/sparc64fbsd-tdep.c
index 568db72..0ba6c6d 100644
--- a/gdb/sparc64fbsd-tdep.c
+++ b/gdb/sparc64fbsd-tdep.c
@@ -28,6 +28,7 @@
#include "trad-frame.h"
#include "sparc64-tdep.h"
+#include "fbsd-tdep.h"
#include "solib-svr4.h"
/* From <machine/reg.h>. */
@@ -221,6 +222,9 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ /* Generic FreeBSD support. */
+ fbsd_init_abi (info, gdbarch);
+
tdep->gregset = &sparc64fbsd_gregset;
tdep->sizeof_gregset = 256;