From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4808 invoked by alias); 27 Dec 2005 15:38:03 -0000 Received: (qmail 4800 invoked by uid 22791); 27 Dec 2005 15:38:02 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.207) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Dec 2005 15:38:01 +0000 Received: by zproxy.gmail.com with SMTP id 16so1307676nzp for ; Tue, 27 Dec 2005 07:37:59 -0800 (PST) Received: by 10.36.221.56 with SMTP id t56mr4295431nzg; Tue, 27 Dec 2005 07:37:59 -0800 (PST) Received: from ?192.168.0.124? ( [218.1.150.9]) by mx.gmail.com with ESMTP id j7sm693178nzd.2005.12.27.07.37.57; Tue, 27 Dec 2005 07:37:58 -0800 (PST) Message-ID: <43B15FD3.7090404@gmail.com> Date: Fri, 30 Dec 2005 10:13:00 -0000 From: Jie Zhang User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051010) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] Add support for Analog Devices Blackfin processor (part 3/6: gdb testsuite) Content-Type: multipart/mixed; boundary="------------030303070004050001050601" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00307.txt.bz2 This is a multi-part message in MIME format. --------------030303070004050001050601 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 134 This is the third part for Analog Devices Blackfin processor, which adds bfin support in asm-source.exp. Any comments? Thanks, Jie --------------030303070004050001050601 Content-Type: text/x-patch; name="bfin-gdb-testsuite.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bfin-gdb-testsuite.diff" Content-length: 1539 gdb/ * testsuite/gdb.asm/asm-source.exp: Add support for bfin-*-*. * testsuite/gdb.asm/bfin.inc: New file. diff -r -N -u -x CVS src.orig/gdb/testsuite/gdb.asm/asm-source.exp src/gdb/testsuite/gdb.asm/asm-source.exp --- src.orig/gdb/testsuite/gdb.asm/asm-source.exp 2005-12-09 19:05:26.000000000 +0800 +++ src/gdb/testsuite/gdb.asm/asm-source.exp 2005-12-27 16:55:44.000000000 +0800 @@ -51,6 +51,11 @@ "xscale-*-*" { set asm-arch arm } + "bfin-*-*" { + set asm-arch bfin + set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" + set debug-flags "-g" + } "d10v-*-*" { set asm-arch d10v } diff -r -N -u -x CVS src.orig/gdb/testsuite/gdb.asm/bfin.inc src/gdb/testsuite/gdb.asm/bfin.inc --- src.orig/gdb/testsuite/gdb.asm/bfin.inc 1970-01-01 08:00:00.000000000 +0800 +++ src/gdb/testsuite/gdb.asm/bfin.inc 2005-12-27 16:56:38.000000000 +0800 @@ -0,0 +1,44 @@ + comment "subroutine prologue" + .macro gdbasm_enter + LINK 12; + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + UNLINK; + RTS; + .endm + + .macro gdbasm_call subr + call \subr; + .endm + + .macro gdbasm_several_nops + mnop; + mnop; + mnop; + mnop; + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + R0 = 0; + RAISE 0; + .endm + + comment "crt0 startup" + .macro gdbasm_startup + FP = 0; + .endm + + comment "Declare a data variable" + .purgem gdbasm_datavar + .macro gdbasm_datavar name value + .data + .align 4 + .type \name, @object + .size \name, 4 +\name: + .long \value + .endm + --------------030303070004050001050601--