RFA: use constructor to build 'struct regset' objects
Andrew Cagney
cagney@gnu.org
Wed May 19 14:56:00 GMT 2004
+ struct regset *regset_xmalloc (void *descr,
+ supply_regset_ftype *supply_regset,
+ fill_regset_ftype *fill_regset)
+ {
Can you run the file through gdb_indent.sh?
+ struct regset *r = (struct regset *) xmalloc (sizeof (*r));
Since this data belongs to an architecture, this should be allocated
from the architecture's obstack. I suspect this is a pre-existing bug
but can you still fix it?
Andrew
More information about the Gdb-patches
mailing list