This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add m32r target to asm-source.exp test



2001-11-21  Michael Snyder  <msnyder@redhat.com>

	* gdb.asm/m32r.inc: New file.
	* gdb.asm/asm-source.exp: Recognize m32r target.
	* gdb.asm/configure.in: Recognize m32r target.
	* gdb.asm/configure: Regenerate.

Index: asm-source.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v
retrieving revision 1.7
diff -p -r1.7 asm-source.exp
*** asm-source.exp	2001/11/22 01:07:24	1.7
--- asm-source.exp	2001/11/22 01:12:03
*************** if [istarget "d10v-*-*"] then {
*** 41,46 ****
--- 41,49 ----
  if [istarget "i\[3456\]86-*-*"] then {
      set asm-arch i386
  }
+ if [istarget "m32r*-*"] then {
+     set asm-arch m32r
+ }
  if { "${asm-arch}" == "" } {
      gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
  }
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure.in,v
retrieving revision 1.2
diff -p -r1.2 configure.in
*** configure.in	2001/11/22 01:07:24	1.2
--- configure.in	2001/11/22 01:12:03
*************** archinc=common.inc
*** 17,22 ****
--- 17,23 ----
  case ${target} in
  d10v-*-*) archinc=d10v.inc ;;
  i[3456]86*) archinc=i386.inc ;;
+ m32r*-*) archinc=m32r.inc ;;
  esac
  AC_LINK_FILES($archinc,arch.inc)
  
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/configure,v
retrieving revision 1.2
diff -p -r1.2 configure
*** configure	2001/11/22 01:07:24	1.2
--- configure	2001/11/22 01:12:03
*************** archinc=common.inc
*** 635,640 ****
--- 635,641 ----
  case ${target} in
  d10v-*-*) archinc=d10v.inc ;;
  i[3456]86*) archinc=i386.inc ;;
+ m32r*-*) archinc=m32r.inc ;;
  esac
  
  

	comment "subroutine prologue"
	.macro gdbasm_enter
	push fp -> push lr
	addi sp,#-4 -> mv fp,sp
	.endm

	comment "subroutine epilogue"
	.macro gdbasm_leave
	addi sp,#4 -> pop lr
	pop fp -> jmp lr
	.endm

	.macro gdbasm_call subr
	bl	\subr -> nop
	.endm

	.macro gdbasm_several_nops
	nop
	nop
	nop
	nop
	.endm

	comment "exit (0)"
	.macro gdbasm_exit0
	ldi r0,#1 -> ldi r1,#0
	ldi r2,#0 -> ldi r3,#0
	trap #0 -> nop
	.endm

	comment "crt0 startup"
	.macro gdbasm_startup
	ld24 sp,_stack
	ldi fp,#0
	.endm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]