From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2869 invoked by alias); 6 Jul 2003 18:23:59 -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 2848 invoked from network); 6 Jul 2003 18:23:58 -0000 Received: from unknown (HELO lisa.goe.net) (134.76.166.209) by sources.redhat.com with SMTP; 6 Jul 2003 18:23:58 -0000 Received: from mutter.goe.net (mutter-lisa0.a11.local [192.168.31.26]) by lisa.goe.net (8.12.6/8.12.6) with ESMTP id h66INvqI026615 for ; Sun, 6 Jul 2003 20:23:57 +0200 Received: from whitebox.a11.local ([192.168.31.90] helo=whitebox.as.local) by mutter.goe.net with esmtp (Exim 4.20) id 19ZEB3-0006O4-3T for gdb-patches@sources.redhat.com; Sun, 06 Jul 2003 20:23:57 +0200 Received: from whitebox.as.local (localhost [127.0.0.1]) by whitebox.as.local (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id h66INv8P011903 for ; Sun, 6 Jul 2003 20:23:58 +0200 Received: (from andreas@localhost) by whitebox.as.local (8.12.7/8.12.7/Submit) id h66INvlH011902; Sun, 6 Jul 2003 20:23:57 +0200 X-Authentication-Warning: whitebox.as.local: andreas set sender to schwab@suse.de using -f To: gdb-patches@sources.redhat.com Subject: [RFA] Support for m68k in asm-source.exp From: Andreas Schwab X-Yow: Not SENSUOUS... only ``FROLICSOME''... and in need of DENTAL WORK... in PAIN!!! Date: Sun, 06 Jul 2003 18:23:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00107.txt.bz2 This adds support for m68k in asm-source.exp in the testsuite (no failures on m68k-linux). OK for HEAD and 6.0 branch? Andreas. 2003-07-06 Andreas Schwab * gdb.asm/m68k.inc: New file. * gdb.asm/asm-source.exp: Use it for m68k-*-*. --- gdb/testsuite/gdb.asm/asm-source.exp.~1.38.~ 2003-06-03 00:08:50.000000000 +0200 +++ gdb/testsuite/gdb.asm/asm-source.exp 2003-07-06 20:05:49.000000000 +0200 @@ -99,6 +99,9 @@ switch -glob -- [istarget] { set asm-arch v850 set gdb_wrapper_initialized 1 } + "m68k-*-*" { + set asm-arch m68k + } } if { "${asm-arch}" == "" } { --- /dev/null 2003-03-16 18:50:40.000000000 +0100 +++ gdb/testsuite/gdb.asm/m68k.inc 2003-07-06 20:04:02.000000000 +0200 @@ -0,0 +1,38 @@ + comment "subroutine prologue" + .macro gdbasm_enter + link %a6,#0 + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + unlk %a6 + rts + .endm + + .macro gdbasm_call subr + jbsr \subr + .endm + + .macro gdbasm_several_nops + nop + nop + nop + nop + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + illegal + .endm + + comment "crt0 startup" + .macro gdbasm_startup + lea 0,%a6 + .endm + + comment "Declare a data variable" + .macro gdbasm_datavar name value + .data +\name: + .long \value + .endm