From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Jim Blandy Cc: Mark Kettenis , gdb-patches@sources.redhat.com Subject: Re: RFA: use constructor to build 'struct regset' objects Date: Wed, 19 May 2004 14:56:00 -0000 Message-id: <40AB75A5.8030201@gnu.org> References: <200405172148.i4HLm0bc014264@elgar.kettenis.dyndns.org> X-SW-Source: 2004-05/msg00569.html + 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