From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5718 invoked by alias); 7 Feb 2002 22:52:05 -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 5624 invoked from network); 7 Feb 2002 22:52:04 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 7 Feb 2002 22:52:04 -0000 Received: from redhat.com (rtl.cygnus.com [205.180.230.21]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA07119; Thu, 7 Feb 2002 14:51:51 -0800 (PST) Message-ID: <3C6304EA.F14CD5E@redhat.com> Date: Thu, 07 Feb 2002 14:52:00 -0000 From: Fernando Nasser Organization: Red Hat Canada X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.9-21 i686) X-Accept-Language: en MIME-Version: 1.0 To: Michael Snyder CC: "Kuppuswamy, Priyadarshini" , gdb-patches@sources.redhat.com, clp@iol.unh.edu Subject: Re: [PATCH] Add alpha target to asm-source.exp test References: <6B003D25ADBDE347B5542AFE6A55B42E01A43FFD@tayexc13.americas.cpqcorp.net> <3C62FECD.A3BDD93F@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00205.txt.bz2 Michael Snyder wrote: > > "Kuppuswamy, Priyadarshini" wrote: > > > > Hi! > > > > This is the asm-source test for the alpha target. > > > > Let me know if this is ok?? > > > > --Priya > > > > The new file "alpha.inc" is included at the end. > > I was working on this myself a month or so ago, and > the assembly language that you came up with looks very > similar to mine. So I'll give yours a technical endorsement, > while waiting for Fernando to give the official approval. > Hi Kuppuswamy, Do you have a FSF assignment? Fernando > > > > *gdb.asm/alpha.inc: New file. > > *gdb.asm/asm-source.exp: Recognize the alpha target *gdb.asm/configure.in: Recognize the alpha target *gdb.asm/configure:Regenerate. > > > > Index: configure.in > > =================================================================== > > RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure.in,v > > retrieving revision 1.8 > > diff -c -3 -p -r1.8 configure.in > > *** configure.in 2001/12/20 22:12:20 1.8 > > --- configure.in 2002/02/07 21:31:36 > > *************** archinc=common.inc > > *** 17,22 **** > > --- 17,23 ---- > > case ${target} in > > *arm-*-*) archinc=arm.inc ;; > > xscale-*-*) archinc=arm.inc ;; > > + alpha*-*-*) archinc=alpha.inc ;; > > d10v-*-*) archinc=d10v.inc ;; > > s390-*-*) archinc=s390.inc ;; > > i[[3456]]86*) archinc=i386.inc ;; > > > > Index: configure > > =================================================================== > > RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure,v > > retrieving revision 1.8 > > diff -c -3 -p -r1.8 configure > > *** configure 2001/12/20 22:12:20 1.8 > > --- configure 2002/02/07 21:32:09 > > *************** archinc=common.inc > > *** 637,642 **** > > --- 637,643 ---- > > case ${target} in > > *arm-*-*) archinc=arm.inc ;; > > xscale-*-*) archinc=arm.inc ;; > > + alpha*-*-*) archinc=alpha.inc ;; > > d10v-*-*) archinc=d10v.inc ;; > > s390-*-*) archinc=s390.inc ;; > > i[3456]86*) archinc=i386.inc ;; > > > > Index: asm-source.exp > > =================================================================== > > RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v > > retrieving revision 1.17 > > diff -c -3 -p -r1.17 asm-source.exp > > *** asm-source.exp 2002/01/18 00:13:00 1.17 > > --- asm-source.exp 2002/02/07 21:32:27 > > *************** if [istarget "*arm-*-*"] then { > > *** 41,46 **** > > --- 41,50 ---- > > if [istarget "xscale-*-*"] then { > > set asm-arch arm > > } > > + if [istarget "alpha*-*-*"] then { > > + set asm-arch alpha > > + set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" > > + } > > if [istarget "d10v-*-*"] then { > > set asm-arch d10v > > } > > > > alpha.inc > > --------- > > comment "subroutine prologue" > > .macro gdbasm_enter > > subq $30,32,$30 > > stq $26,0($30) > > stq $15,8($30) > > bis $30,$30,$15 > > .endm > > > > comment "subroutine epilogue" > > .macro gdbasm_leave > > bis $15,$15,$30 > > ldq $26,0($30) > > ldq $15,8($30) > > addq $30,32,$30 > > ret $31,($26),1 > > .endm > > > > .macro gdbasm_call subr > > bsr $26, \subr > > .endm > > > > .macro gdbasm_several_nops > > nop > > nop > > nop > > nop > > .endm > > > > comment "exit (0)" > > .macro gdbasm_exit0 > > halt > > .endm > > > > comment "crt0 startup" > > .macro gdbasm_startup > > clr $fp > > .endm > > > > comment "Declare a data variable" > > .macro gdbasm_datavar name value > > .data > > \name: > > .long \value > > .endm -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9