diff options
Diffstat (limited to 'gdb/regset.c')
-rw-r--r-- | gdb/regset.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/regset.c b/gdb/regset.c index 2ab40b8..7392676 100644 --- a/gdb/regset.c +++ b/gdb/regset.c @@ -25,11 +25,13 @@ struct regset * -regset_xmalloc (const void *descr, - supply_regset_ftype *supply_regset, - collect_regset_ftype *collect_regset) +regset_alloc (struct gdbarch *arch, + const void *descr, + supply_regset_ftype *supply_regset, + collect_regset_ftype *collect_regset) { - struct regset *r = (struct regset *) xmalloc (sizeof (*r)); + struct regset *r + = (struct regset *) gdbarch_obstack_zalloc (arch, sizeof (*r)); r->descr = descr; r->supply_regset = supply_regset; |