This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: testsuite gdb.base/constvars: force allocation of local variables
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 8 Nov 2006 11:15:02 -0500
- Subject: Re: testsuite gdb.base/constvars: force allocation of local variables
- References: <4551E0F4.7030803@st.com>
Please, reply to the list next time. This patch is OK if you fix your
formatting.
On Wed, Nov 08, 2006 at 02:51:48PM +0100, Christophe LYON wrote:
>
> 2006-11-08 Christophe Lyon <christophe.lyon@st.com>
>
> * gdb.base/constvars.c (main): Write to crass and crips, so that
> they are allocated by the compiler.
Tab on the second line there.
> - struct crass { char * const ptr; } crass;
> - struct crisp { char * const *ptr; } crisp;
> + struct crass { char * const ptr; } crass = { lamprey} ;
> + struct crisp { char * const *ptr; } crisp = { &lamprey} ;
Space before "}" and not after.
--
Daniel Jacobowitz
CodeSourcery