diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-12-13 13:42:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-12-13 13:42:19 +0000 |
commit | 105ba819229cbdaf720200da3138847f57e70167 (patch) | |
tree | 0d17630bc694dddbe3184e5cd5d7075e650019d5 | |
parent | 0c884e17826fa058f5c8080d08a6f24abd1b3ddc (diff) | |
download | gdb-105ba819229cbdaf720200da3138847f57e70167.zip gdb-105ba819229cbdaf720200da3138847f57e70167.tar.gz gdb-105ba819229cbdaf720200da3138847f57e70167.tar.bz2 |
* gdb.asm/asm-source.exp: Add support for xstormy16.
* gdb.asm/configure.in: Ditto.
* gdb.asm/configure: Rebuild.
* gdb.asm/xstormy16.inc: New file.
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 5 | ||||
-rwxr-xr-x | gdb/testsuite/gdb.asm/configure | 28 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/configure.in | 1 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/xstormy16.inc | 34 |
5 files changed, 56 insertions, 19 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3606b56..6d0c4f8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2001-12-13 Corinna Vinschen <vinschen@redhat.com> + + * gdb.asm/asm-source.exp: Add support for xstormy16. + * gdb.asm/configure.in: Ditto. + * gdb.asm/configure: Rebuild. + * gdb.asm/xstormy16.inc: New file. + 2001-12-10 Fred Fish <fnf@redhat.com> * gdb.base/maint.exp: Update to match changes in type dumping code. diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index a864686..12fb43e 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -50,6 +50,11 @@ if [istarget "m32r*-*"] then { if [istarget "sparc-*-*"] then { set asm-arch sparc } +if [istarget "xstormy16-*-*"] then { + set asm-arch xstormy16 + set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" + set link-flags "-L${objdir}/../../gcc" +} 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 3219273..eb0ac6f 100755 --- a/gdb/testsuite/gdb.asm/configure +++ b/gdb/testsuite/gdb.asm/configure @@ -28,7 +28,6 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= -sitefile= srcdir= target=NONE verbose= @@ -143,7 +142,6 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages - --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -314,11 +312,6 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; - -site-file | --site-file | --site-fil | --site-fi | --site-f) - ac_prev=sitefile ;; - -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) - sitefile="$ac_optarg" ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -484,16 +477,12 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$sitefile"; then - if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -else - CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -582,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:586: checking host system type" >&5 +echo "configure:575: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -603,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:607: checking target system type" >&5 +echo "configure:596: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -621,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:625: checking build system type" >&5 +echo "configure:614: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -651,6 +640,7 @@ s390-*-*) archinc=s390.inc ;; i[3456]86*) archinc=i386.inc ;; m32r*-*) archinc=m32r.inc ;; sparc-*-*) archinc=sparc.inc ;; +xstormy16-*-*) archinc=xstormy16.inc ;; esac diff --git a/gdb/testsuite/gdb.asm/configure.in b/gdb/testsuite/gdb.asm/configure.in index 07fc4c4..9b268f2 100644 --- a/gdb/testsuite/gdb.asm/configure.in +++ b/gdb/testsuite/gdb.asm/configure.in @@ -20,6 +20,7 @@ s390-*-*) archinc=s390.inc ;; i[[3456]]86*) archinc=i386.inc ;; m32r*-*) archinc=m32r.inc ;; sparc-*-*) archinc=sparc.inc ;; +xstormy16-*-*) archinc=xstormy16.inc ;; esac AC_LINK_FILES($archinc,arch.inc) diff --git a/gdb/testsuite/gdb.asm/xstormy16.inc b/gdb/testsuite/gdb.asm/xstormy16.inc new file mode 100644 index 0000000..22827f3 --- /dev/null +++ b/gdb/testsuite/gdb.asm/xstormy16.inc @@ -0,0 +1,34 @@ + comment "subroutine prologue" + .macro gdbasm_enter + push r13 + mov r13,r15 + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + pop r13 + ret + .endm + + .macro gdbasm_call subr + callf \subr + .endm + + .macro gdbasm_several_nops + add r0,#0 + add r0,#0 + add r0,#0 + add r0,#0 + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + mov.w r2,#0 + halt + .endm + + comment "crt0 startup" + .macro gdbasm_startup + mov r15,#2 + .endm + |