This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/testsuite] ptype.exp: fix FAILs for unused types
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 26 Mar 2003 15:14:19 -0500
- Subject: Re: [rfa/testsuite] ptype.exp: fix FAILs for unused types
- References: <200303261804.h2QI4cG17022@duracef.shout.net>
On Wed, Mar 26, 2003 at 12:04:38PM -0600, Michael Elizabeth Chastain wrote:
> This patch fixes two FAILs in gdb.base/ptype.exp with gcc HEAD
> -gdwarf-2.
>
> gdb.base/ptype.exp: ptype t_char_array
> gdb.base/ptype.exp: ptype func_type
>
> gdb.base/ptype.c typedef's some types but then does not actually use
> them. Recent versions of gcc HEAD with -gdwarf-2 optimize away the type
> information. So this patch simply uses the types.
>
> Tested on my usual testbed: native i686-pc-linux-gnu with gcc v2 and v3,
> -gdward-2 and -gstabs+. I specifically checked that it fixes the
> FAILs associated with gcc HEAD.
>
> OK to commit?
Yes, thank you!
> 2003-03-26 Michael Chastain <mec at shout dot net>
>
> * gdb.base/ptype.exp: Actually use some typedef'd types.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer