From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29901 invoked by alias); 7 Aug 2003 17:21:31 -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 29894 invoked from network); 7 Aug 2003 17:21:29 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 7 Aug 2003 17:21:29 -0000 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 5175380004A for ; Thu, 7 Aug 2003 13:21:29 -0400 (EDT) Message-ID: <3F328A99.5020507@redhat.com> Date: Thu, 07 Aug 2003 17:21:00 -0000 From: "J. Johnston" Organization: Red Hat Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: RFA: ia64 gdb.asm testsuite support Content-Type: multipart/mixed; boundary="------------030701030903050108090509" X-SW-Source: 2003-08/txt/msg00099.txt.bz2 This is a multi-part message in MIME format. --------------030701030903050108090509 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 283 The following patch adds support for the ia64 to the gdb.asm testsuite. With it, there are 28 more successes for the testsuite. Ok to commit? -- Jeff J. 2003-08-07 Jeff Johnston * gdb.asm/asm-source.exp: Add ia64 support. * gdb.asm/ia64.inc: New file. --------------030701030903050108090509 Content-Type: text/plain; name="ia64.gdb.asm.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ia64.gdb.asm.patch" Content-length: 1492 Index: asm-source.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v retrieving revision 1.40 diff -u -p -r1.40 asm-source.exp --- asm-source.exp 15 Jul 2003 17:23:32 -0000 1.40 +++ asm-source.exp 7 Aug 2003 17:17:38 -0000 @@ -102,6 +102,10 @@ switch -glob -- [istarget] { "m68k-*-*" { set asm-arch m68k } + "ia64-*-*" { + set asm-arch ia64 + set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" + } } if { "${asm-arch}" == "" } { Index: ia64.inc =================================================================== RCS file: ia64.inc diff -N ia64.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ia64.inc 7 Aug 2003 17:17:38 -0000 @@ -0,0 +1,49 @@ + comment "subroutine prologue" + .macro gdbasm_enter + alloc r33=ar.pfs,0,2,0,0 + mov r32=b0 + nop.i 0 + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + nop.m 0 + mov ar.pfs=r33 + mov b0=r32 + nop.m 0 + nop.f 0 + br.ret.sptk.many b0 + .endm + + .macro gdbasm_call subr + nop.m 0 + nop.f 0 + br.call.sptk.many b0=\subr + .endm + + .macro gdbasm_several_nops + nop.m 0 + nop.i 0 + nop.i 0 + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + break.m 0x0 + nop.m 0 + nop.i 0 + .endm + + comment "crt0 startup" + .macro gdbasm_startup + mov r32=r0 + nop.i 0 + nop.i 0 + .endm + + comment "Declare a data variable" + .macro gdbasm_datavar name value + .data +\name: + .long \value + .endm --------------030701030903050108090509--