diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-02-24 10:58:15 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-05-21 17:49:17 +0200 |
commit | b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb (patch) | |
tree | 0c4369ece7b81bf3efa1cf3a69f6f3a3114c3f36 /gdb/sparc64fbsd-tdep.c | |
parent | b4fd25c939a2dcf09c98c53c61ee17fc792e5be6 (diff) | |
download | gdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.zip gdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.tar.gz gdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.tar.bz2 |
SPARC: Replace regset_alloc() invocations by static regset structures.
Diffstat (limited to 'gdb/sparc64fbsd-tdep.c')
-rw-r--r-- | gdb/sparc64fbsd-tdep.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/sparc64fbsd-tdep.c b/gdb/sparc64fbsd-tdep.c index 6ca87dc..fde7815 100644 --- a/gdb/sparc64fbsd-tdep.c +++ b/gdb/sparc64fbsd-tdep.c @@ -209,17 +209,25 @@ static const struct frame_unwind sparc64fbsd_sigtramp_frame_unwind = }; +static const struct regset sparc64fbsd_gregset = + { + NULL, sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset + }; + +static const struct regset sparc64fbsd_fpregset = + { + NULL, sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset + }; + static void sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - tdep->gregset = regset_alloc (gdbarch, sparc64fbsd_supply_gregset, - sparc64fbsd_collect_gregset); + tdep->gregset = &sparc64fbsd_gregset; tdep->sizeof_gregset = 256; - tdep->fpregset = regset_alloc (gdbarch, sparc64fbsd_supply_fpregset, - sparc64fbsd_collect_fpregset); + tdep->fpregset = &sparc64fbsd_fpregset; tdep->sizeof_fpregset = 272; frame_unwind_append_unwinder (gdbarch, &sparc64fbsd_sigtramp_frame_unwind); |