Allocate regset structures in the gdbarch's obstack, not using
[deliverable/binutils-gdb.git] / gdb / i386nbsd-tdep.c
index 53dbe8af2abed3034b2087ec0ca05c1ee7716a82..4f214b4f106ba25b47a1119e43fa9c7532639779 100644 (file)
@@ -86,8 +86,8 @@ i386nbsd_aout_regset_from_core_section (struct gdbarch *gdbarch,
       && sect_size >= tdep->sizeof_gregset + I387_SIZEOF_FSAVE)
     {
       if (tdep->gregset == NULL)
-        tdep->gregset
-          = regset_xmalloc (tdep, i386nbsd_aout_supply_regset, NULL);
+        tdep->gregset = regset_alloc (gdbarch, tdep,
+                                      i386nbsd_aout_supply_regset, NULL);
       return tdep->gregset;
     }
 
This page took 0.030567 seconds and 4 git commands to generate.