This is the mail archive of the gdb-patches@sources.redhat.com 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: [rfa/testsuite] ptype.exp: fix FAILs for unused types


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


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