From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6900 invoked by alias); 17 Apr 2002 19:55:39 -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 6849 invoked from network); 17 Apr 2002 19:55:35 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 17 Apr 2002 19:55:35 -0000 Received: from localhost.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id MAA07654; Wed, 17 Apr 2002 12:55:28 -0700 (PDT) Received: by localhost.redhat.com (Postfix, from userid 469) id 688AE11435; Wed, 17 Apr 2002 15:55:06 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15549.54041.793135.127103@localhost.redhat.com> Date: Wed, 17 Apr 2002 12:55:00 -0000 To: "David S. Miller" Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Add sparc64 gdb.asm/ testsuite bits In-Reply-To: <200204171948.MAA19544@nuts.ninka.net> References: <200204171948.MAA19544@nuts.ninka.net> X-SW-Source: 2002-04/txt/msg00563.txt.bz2 David S. Miller writes: > > This adds sparc64 support to the gdb.asm part of the testsuite. > > Although I have a question, there used to be configure bits in this > gdb.asm directory that would setup the symlink in the build area for > arch.inc and that doesn't happen anymore. How is this supposed to > work now? I just changed that to do it in the .exp file, at run time. I am about to commit another patch to get rid of the symlink and just do a copy. Elena > > 2002-04-17 David S. Miller > > * gdb.asm/sparc64.inc: New file. > * gdb.asm/asm-source.exp: Handle sparc64-*-*. > > --- ./testsuite/gdb.asm/sparc64.inc.~1~ Tue Apr 16 10:59:10 2002 > +++ ./testsuite/gdb.asm/sparc64.inc Tue Apr 16 10:58:53 2002 > @@ -0,0 +1,34 @@ > + comment "subroutine prologue" > + .macro gdbasm_enter > + save %sp, -192, %sp > + .endm > + > + comment "subroutine epilogue" > + .macro gdbasm_leave > + return %i7 + 8 > + nop > + .endm > + > + .macro gdbasm_call subr > + call \subr > + nop > + .endm > + > + .macro gdbasm_several_nops > + nop > + nop > + nop > + nop > + .endm > + > + comment "exit (0)" > + .macro gdbasm_exit0 > + comment "Don't know how to exit, but this will certainly halt..." > + ldx [%g0], %i0 > + .endm > + > + comment "crt0 startup" > + .macro gdbasm_startup > + clr %fp > + .endm > + > --- ./testsuite/gdb.asm/asm-source.exp.~1~ Tue Apr 16 10:56:47 2002 > +++ ./testsuite/gdb.asm/asm-source.exp Tue Apr 16 10:58:53 2002 > @@ -59,6 +59,10 @@ if [istarget "powerpc*-*"] then { > if [istarget "sparc-*-*"] then { > set asm-arch sparc > } > +if [istarget "sparc64-*-*"] then { > + set asm-arch sparc64 > + set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}" > +} > if [istarget "xstormy16-*-*"] then { > set asm-arch xstormy16 > set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"