From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4663 invoked by alias); 26 Mar 2003 20:14:36 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4656 invoked from network); 26 Mar 2003 20:14:35 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 26 Mar 2003 20:14:35 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18yJBZ-00018T-00; Wed, 26 Mar 2003 16:15:54 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18yHHw-00037o-00; Wed, 26 Mar 2003 15:14:20 -0500 Date: Wed, 26 Mar 2003 20:14:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/testsuite] ptype.exp: fix FAILs for unused types Message-ID: <20030326201419.GA11986@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , gdb-patches@sources.redhat.com References: <200303261804.h2QI4cG17022@duracef.shout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303261804.h2QI4cG17022@duracef.shout.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00520.txt.bz2 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 > > * gdb.base/ptype.exp: Actually use some typedef'd types. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer