This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH]: Minor fix in blockframe.c
- To: Michael Snyder <msnyder at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Subject: Re: [PATCH]: Minor fix in blockframe.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 11 Dec 2000 14:24:25 -0700
- References: <200012112109.NAA06271@cleaver.cygnus.com>
On Dec 11, 1:09pm, Michael Snyder wrote:
> When setting up a new frame_info object, just use memset to pre-zero
> it, rather than zeroing selected fields individually. That way new ones
> won't get overlooked.
>
> 2000-12-11 Michael Snyder <msnyder@mvstp600e.cygnus.com>
>
> * blockframe.c (get_prev_frame): Zero all fields of prev by
> default using memset (instead of one at a time).
>
[...]
> ! /* Zero all fields by default. */
> ! memset (prev, 0, sizeof (struct frame_info);
> !
It looks to me like you're missing a paren. (No matter how trivial, I
think we should always do test builds first...)
Kevin