From: Michael Snyder Date: Thu, 22 Nov 2001 01:13:10 +0000 (+0000) Subject: 2001-11-21 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a4d72d52ae6fc6b7d5432b2ce9e7af9312656cc;p=binutils-gdb.git 2001-11-21 Michael Snyder * 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 20f6bd72ee8..8736e9d6591 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2001-11-21 Michael Snyder + + * 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. + 2001-11-20 Michael Snyder * gdb.asm/i386.inc: New file. diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index 428d0aa9d35..d6cd75fa4bc 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -41,6 +41,9 @@ if [istarget "d10v-*-*"] then { 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." } diff --git a/gdb/testsuite/gdb.asm/configure b/gdb/testsuite/gdb.asm/configure index d40af7c7eaf..2ff5b8b15a7 100755 --- a/gdb/testsuite/gdb.asm/configure +++ b/gdb/testsuite/gdb.asm/configure @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12.1 +# Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -333,7 +333,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12.1" + echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) @@ -503,9 +503,11 @@ ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross +ac_exeext= +ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then @@ -569,7 +571,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:573: checking host system type" >&5 +echo "configure:575: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -590,7 +592,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:594: checking target system type" >&5 +echo "configure:596: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -608,7 +610,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:612: checking build system type" >&5 +echo "configure:614: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -634,7 +636,8 @@ test "$host_alias" != "$target_alias" && archinc=common.inc case ${target} in d10v-*-*) archinc=d10v.inc ;; -i[3456]86*) archinc=i386.inc ;; +i345686*) archinc=i386.inc ;; +m32r*-*) archinc=m32r.inc ;; esac @@ -661,7 +664,7 @@ EOF # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - case `(ac_space=' '; set) 2>&1 | grep ac_space` in + case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). @@ -740,7 +743,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12.1" + echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -763,6 +766,7 @@ s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g diff --git a/gdb/testsuite/gdb.asm/configure.in b/gdb/testsuite/gdb.asm/configure.in index 9bafbc950e1..2473049f0fa 100644 --- a/gdb/testsuite/gdb.asm/configure.in +++ b/gdb/testsuite/gdb.asm/configure.in @@ -17,6 +17,7 @@ archinc=common.inc case ${target} in d10v-*-*) archinc=d10v.inc ;; i[3456]86*) archinc=i386.inc ;; +m32r*-*) archinc=m32r.inc ;; esac AC_LINK_FILES($archinc,arch.inc) diff --git a/gdb/testsuite/gdb.asm/m32r.inc b/gdb/testsuite/gdb.asm/m32r.inc new file mode 100644 index 00000000000..6110373df41 --- /dev/null +++ b/gdb/testsuite/gdb.asm/m32r.inc @@ -0,0 +1,35 @@ + 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