This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix inconsistent usage of FRAME_OBSTACK_ZALLOC macro


On Mon, Jul 24, 2006 at 05:05:37PM -0400, Fred Fish wrote:
> Of the 50+ places that reference frame_obstack_zalloc(), about 50 of
> them use the FRAME_OBSTACK_ZALLOC macro.  The rest call the function
> directly.
> 
> This patch makes them all consistently use the macro.

I gather you didn't test Alpha.  This patch is wrong.

> -  info->saved_regs = frame_obstack_zalloc (SIZEOF_FRAME_SAVED_REGS);
> +  info->saved_regs = FRAME_OBSTACK_ZALLOC (SIZEOF_FRAME_SAVED_REGS);

That will probably allocate sizeof (int).

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]