From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2343 invoked by alias); 23 Aug 2012 20:43:56 -0000 Received: (qmail 2334 invoked by uid 22791); 23 Aug 2012 20:43:55 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail3.caviumnetworks.com (HELO mail3.caviumnetworks.com) (12.108.191.235) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Aug 2012 20:43:37 +0000 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Thu, 23 Aug 2012 13:45:19 -0700 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 Aug 2012 13:43:36 -0700 Received: from [10.18.104.76] ([64.2.3.195]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 Aug 2012 13:43:36 -0700 Subject: Re: [PATCH/MIPS] Add support Octeon's bbit instructions From: Andrew Pinski To: Tom Tromey Cc: Andrew Pinski , "Maciej W. Rozycki" , "gdb-patches@sourceware.org" In-Reply-To: <87d32hpo9m.fsf@fleche.redhat.com> References: <5A31B467E5043B4C9104F558E9137E4E324F3E7025@VA3DIAXVS3E1.RED001.local> <87d32hpo9m.fsf@fleche.redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 23 Aug 2012 20:43:00 -0000 Message-ID: <1345754613.22460.1.camel@apinskidesktop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: 2012-08/txt/msg00700.txt.bz2 On Thu, 2012-08-23 at 10:27 -0600, Tom Tromey wrote: > >>>>> "Andrew" == Andrew Pinski writes: > > I know this is in already, but at least for future reference (or now if > you don't mind changing it)... Thanks, I will remember this for next time. > > Andrew> +set testfile "mips-octeon-bbit" > Andrew> +set srcfile ${testfile}.c > Andrew> +set binfile ${objdir}/${subdir}/${testfile} > > Use standard_testfile.c > > Andrew> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ > Andrew> + {debug nowarnings}] != "" } { > Andrew> + fail "compilation" > Andrew> + return > Andrew> +} > Andrew> + > Andrew> +pass "compilation" > Andrew> + > Andrew> +gdb_exit > Andrew> +gdb_start > Andrew> +gdb_reinitialize_dir $srcdir/$subdir > Andrew> +gdb_load ${binfile} > > All this can be replaced with prepare_for_testing. > > If you want, I can write a patch, if you would test it. Yes please write the patch and I will test it. Thanks, Andrew Pinski