Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jie Zhang <jzhang918@gmail.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Add support for Analog Devices Blackfin processor (part 3/6:  gdb testsuite)
Date: Fri, 30 Dec 2005 10:13:00 -0000	[thread overview]
Message-ID: <43B15FD3.7090404@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

This is the third part for Analog Devices Blackfin processor, which adds
bfin support in asm-source.exp.

Any comments?

Thanks,
Jie


[-- Attachment #2: bfin-gdb-testsuite.diff --]
[-- Type: text/x-patch, Size: 1539 bytes --]

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
+


             reply	other threads:[~2005-12-27 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-30 10:13 Jie Zhang [this message]
2006-01-04  5:32 ` Jim Blandy
2006-01-04  6:41   ` Jie Zhang
2006-01-04  8:22     ` Jim Blandy
2006-01-20 23:22       ` Daniel Jacobowitz

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=43B15FD3.7090404@gmail.com \
    --to=jzhang918@gmail.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