aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-linux-tdep.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-02-24 10:58:15 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-05-21 17:49:17 +0200
commitb13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb (patch)
tree0c4369ece7b81bf3efa1cf3a69f6f3a3114c3f36 /gdb/sparc-linux-tdep.c
parentb4fd25c939a2dcf09c98c53c61ee17fc792e5be6 (diff)
downloadgdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.zip
gdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.tar.gz
gdb-b13feb94aa4eba5f3eea3cb47cbf0a2eed8683fb.tar.bz2
SPARC: Replace regset_alloc() invocations by static regset structures.
Diffstat (limited to 'gdb/sparc-linux-tdep.c')
-rw-r--r--gdb/sparc-linux-tdep.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index 4a193e2..fd1fc3d 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -403,6 +403,20 @@ sparc32_linux_gdb_signal_to_target (struct gdbarch *gdbarch,
+static const struct regset sparc32_linux_gregset =
+ {
+ NULL,
+ sparc32_linux_supply_core_gregset,
+ sparc32_linux_collect_core_gregset
+ };
+
+static const struct regset sparc32_linux_fpregset =
+ {
+ NULL,
+ sparc32_linux_supply_core_fpregset,
+ sparc32_linux_collect_core_fpregset
+ };
+
static void
sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@ -410,12 +424,10 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
linux_init_abi (info, gdbarch);
- tdep->gregset = regset_alloc (gdbarch, sparc32_linux_supply_core_gregset,
- sparc32_linux_collect_core_gregset);
+ tdep->gregset = &sparc32_linux_gregset;
tdep->sizeof_gregset = 152;
- tdep->fpregset = regset_alloc (gdbarch, sparc32_linux_supply_core_fpregset,
- sparc32_linux_collect_core_fpregset);
+ tdep->fpregset = &sparc32_linux_fpregset;
tdep->sizeof_fpregset = 396;
tramp_frame_prepend_unwinder (gdbarch, &sparc32_linux_sigframe);