From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24564 invoked by alias); 1 Oct 2004 09:23:44 -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 24550 invoked from network); 1 Oct 2004 09:23:43 -0000 Received: from unknown (HELO mail03.idc.renesas.com) (202.234.163.13) by sourceware.org with SMTP; 1 Oct 2004 09:23:43 -0000 Received: (from root@localhost) by guardian02.idc.renesas.com with id i919Nak9025058 for gdb-patches@sources.redhat.com; Fri, 1 Oct 2004 18:23:36 +0900 (JST) Received: from unknown [172.20.8.69] by guardian02.idc.renesas.com with SMTP id UAA25057 ; Fri, 1 Oct 2004 18:23:36 +0900 Received: from mrkaisv.hoku.renesas.com ([10.145.105.245]) by rnsmtp01.hoku_r.renesas.com (8.9.3/3.7W) with ESMTP id SAA02526 for ; Fri, 1 Oct 2004 18:23:36 +0900 (JST) Received: from E5A02646 (unknown [10.145.105.81]) by mrkaisv.hoku.renesas.com (Postfix) with SMTP id C95C179809C for ; Fri, 1 Oct 2004 18:23:36 +0900 (JST) Message-ID: <01cf01c4a798$54a36b00$5169910a@E5A02646> From: "Kei Sakamoto" To: Subject: [RFA/testcase] fix compile error of asm-source.exp for m32r-linux Date: Fri, 01 Oct 2004 09:23:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_01CC_01C4A7E3.C4773CE0" X-SW-Source: 2004-10/txt/msg00011.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_01CC_01C4A7E3.C4773CE0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Content-length: 434 The attached fixes the compiler error of asm-source.exp for m32r-linux target. In case of m32r-elf target, asm-source test needs to set stack pointer register. But in m32r-linux target, Linux kernel sets it and the asm-source test should not change its value. OK to commit? 2004-10-01 Kei Sakamoto * gdb.asm/asm-source.exp: Add m32r-linux target. * gdb.asm/m32r-linux.inc: New file. ------=_NextPart_000_01CC_01C4A7E3.C4773CE0 Content-Type: application/octet-stream; name="asm.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="asm.patch" Content-length: 1878 Index: gdb.asm/asm-source.exp=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v=0A= retrieving revision 1.52=0A= diff -u -r1.52 asm-source.exp=0A= --- gdb.asm/asm-source.exp 30 Jul 2004 22:09:01 -0000 1.52=0A= +++ gdb.asm/asm-source.exp 1 Oct 2004 08:41:53 -0000=0A= @@ -71,6 +71,9 @@=0A= "i\[3456\]86-*-*" {=0A= set asm-arch i386=0A= }=0A= + "m32r*-linux*" {=0A= + set asm-arch m32r-linux=0A= + }=0A= "m32r*-*" {=0A= set asm-arch m32r=0A= append link-flags "--whole-archive -lgloss --no-whole-archive"=0A= Index: gdb.asm/m32r-linux.inc=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: gdb.asm/m32r-linux.inc=0A= diff -N gdb.asm/m32r-linux.inc=0A= --- /dev/null 1 Jan 1970 00:00:00 -0000=0A= +++ gdb.asm/m32r-linux.inc 1 Oct 2004 08:41:53 -0000=0A= @@ -0,0 +1,34 @@=0A= + comment "subroutine prologue"=0A= + .macro gdbasm_enter=0A= + push fp -> push lr=0A= + addi sp,#-4 -> mv fp,sp=0A= + .endm=0A= +=0A= + comment "subroutine epilogue"=0A= + .macro gdbasm_leave=0A= + addi sp,#4 -> pop lr=0A= + pop fp -> jmp lr=0A= + .endm=0A= +=0A= + .macro gdbasm_call subr=0A= + bl \subr=0A= + .endm=0A= +=0A= + .macro gdbasm_several_nops=0A= + nop=0A= + nop=0A= + nop=0A= + nop=0A= + .endm=0A= +=0A= + comment "exit (0)"=0A= + .macro gdbasm_exit0=0A= + ldi r0,#1 -> ldi r1,#0=0A= + ldi r2,#0 -> ldi r3,#0=0A= + trap #0 -> nop=0A= + .endm=0A= +=0A= + comment "crt0 startup"=0A= + .macro gdbasm_startup=0A= + ldi fp,#0=0A= + .endm=0A= ------=_NextPart_000_01CC_01C4A7E3.C4773CE0--