From: Corinna Vinschen <vinschen@redhat.com>
To: gdb-patches <gdb-patches@sources.redhat.com>
Subject: [RFA] Add v850.inc to gdb.asm testsuite
Date: Mon, 13 May 2002 09:43:00 -0000 [thread overview]
Message-ID: <20020513184253.D12906@cygbert.vinschen.de> (raw)
Hi,
the following patch adds the v850 target as a supported target for
the gdb.asm part of the testsuite. It consists of adding the
v850 target to asm-sources.exp and the new file v850.inc with
matching assembler code.
Ok to check in?
Corinna
2002-05-13 Corinna Vinschen <vinschen@redhat.com>
* gdb.asm/asm-source.exp: Add v850 as supported target.
* gdb.asm/v850.inc: New file.
Index: asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.23
diff -u -p -r1.23 asm-source.exp
--- asm-source.exp 19 Apr 2002 17:21:48 -0000 1.23
+++ asm-source.exp 13 May 2002 16:39:32 -0000
@@ -67,6 +67,10 @@ if [istarget "xstormy16-*-*"] then {
set asm-arch xstormy16
set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
}
+if [istarget "v850-*-*"] then {
+ set asm-arch v850
+ set gdb_wrapper_initialized 1
+}
if { "${asm-arch}" == "" } {
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
}
Index: v850.inc
===================================================================
RCS file: v850.inc
diff -N v850.inc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ v850.inc 13 May 2002 16:39:32 -0000
@@ -0,0 +1,41 @@
+ comment "subroutine prologue"
+ .macro gdbasm_enter
+ add -8,sp
+ st.w r31,4[sp]
+ st.w r29,0[sp]
+ mov sp,r29
+ .endm
+
+ comment "subroutine epilogue"
+ .macro gdbasm_leave
+ mov r29,sp
+ ld.w 0[sp],r29
+ ld.w 4[sp],r31
+ add 8,sp
+ jmp [r31]
+ .endm
+
+ .macro gdbasm_call subr
+ jarl \subr,r31
+ .endm
+
+ .macro gdbasm_several_nops
+ nop
+ nop
+ nop
+ nop
+ .endm
+
+ comment "exit (0)"
+ .macro gdbasm_exit0
+ halt
+ .endm
+
+ comment "crt0 startup"
+ .macro gdbasm_startup
+ movea 255,r0,r20
+ mov r0, r21
+ ori 65535, r0, r21
+ movhi 32, r0, sp
+ .endm
+
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com
next reply other threads:[~2002-05-13 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-13 9:43 Corinna Vinschen [this message]
2002-05-13 18:37 ` Michael Snyder
2002-05-13 19:14 ` Andrew Cagney
2002-05-14 3:26 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020513184253.D12906@cygbert.vinschen.de \
--to=vinschen@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox