From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4315 invoked by alias); 9 Dec 2010 21:52:42 -0000 Received: (qmail 4304 invoked by uid 22791); 9 Dec 2010 21:52:42 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Dec 2010 21:52:37 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB9Lqa1g021521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 9 Dec 2010 16:52:36 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oB9LqVWd023618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Dec 2010 16:52:35 -0500 Received: from host0.dyn.jankratochvil.net (host0.dyn.jankratochvil.net [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id oB9LqVA3014421; Thu, 9 Dec 2010 22:52:31 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id oB9LqU3O014420; Thu, 9 Dec 2010 22:52:30 +0100 Date: Thu, 09 Dec 2010 21:52:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: Keith Seitz , gdb-patches@sourceware.org Subject: Re: [RFA] c++/11734 revisited Message-ID: <20101209215230.GA14348@host0.dyn.jankratochvil.net> References: <4D002672.5090504@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00122.txt.bz2 On Thu, 09 Dec 2010 22:44:55 +0100, Tom Tromey wrote: > Keith> +if {[gdb_compile $srcfiles $binfile executable {debug c++}] != "" } { > Keith> + untested pr11734.exp > Keith> + return -1 > Keith> +} > > Keith> +if {[get_compiler_info $binfile "c++"]} { > Keith> + return -1 > Keith> +} > Keith> + > Keith> +gdb_exit > Keith> +gdb_start > Keith> +gdb_reinitialize_dir $srcdir/$subdir > Keith> +gdb_load $binfile > > I don't know if you can use prepare_for_testing here, but > if not you can at least use clean_restart. If the reason was get_compiler_info it does not use $binfile anyway. (And a lot of gdb testsuite code expects so.) Thanks, Jan