diff options
Diffstat (limited to 'gdb/sparc64nbsd-tdep.c')
-rw-r--r-- | gdb/sparc64nbsd-tdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/sparc64nbsd-tdep.c b/gdb/sparc64nbsd-tdep.c index 25a0074..1d43d02 100644 --- a/gdb/sparc64nbsd-tdep.c +++ b/gdb/sparc64nbsd-tdep.c @@ -226,11 +226,12 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - tdep->gregset - = regset_xmalloc (&sparc64nbsd_gregset, sparc64nbsd_supply_gregset, NULL); + tdep->gregset = regset_alloc (gdbarch, &sparc64nbsd_gregset, + sparc64nbsd_supply_gregset, NULL); tdep->sizeof_gregset = 160; - tdep->fpregset = regset_xmalloc (NULL, sparc64nbsd_supply_fpregset, NULL); + tdep->fpregset = regset_alloc (gdbarch, NULL, + sparc64nbsd_supply_fpregset, NULL); tdep->sizeof_fpregset = 272; frame_unwind_append_sniffer (gdbarch, sparc64nbsd_sigtramp_frame_sniffer); |