Allocate regset structures in the gdbarch's obstack, not using
[deliverable/binutils-gdb.git] / gdb / i386obsd-tdep.c
index a21faabab821c785d8b2bfa6403aa83ebf7c5c43..43257efed1ccaa42aee3cee47619970f351f75fa 100644 (file)
@@ -141,8 +141,8 @@ i386obsd_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, i386obsd_aout_supply_regset, NULL);
+        tdep->gregset = regset_alloc (gdbarch, tdep,
+                                      i386obsd_aout_supply_regset, NULL);
       return tdep->gregset;
     }
 
This page took 0.025781 seconds and 4 git commands to generate.