diff options
author | Doug Evans <dje@google.com> | 1998-05-13 20:38:50 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-05-13 20:38:50 +0000 |
commit | aa3b6d276b9e56469f189362fde57be895be5079 (patch) | |
tree | adf93c77281c5fbc4d5cc3635c4beb2aaf7ae064 /gdb/testsuite | |
parent | 7d2c0e8c97dac922dfabd1f1deab9c3e92143774 (diff) | |
download | gdb-aa3b6d276b9e56469f189362fde57be895be5079.zip gdb-aa3b6d276b9e56469f189362fde57be895be5079.tar.gz gdb-aa3b6d276b9e56469f189362fde57be895be5079.tar.bz2 |
* gdb.asm/common.inc: New file.
* gdb.asm/d10v.inc: New file.
* asm-source.exp: Pass -I's to gas to find .inc files.
Update line numbers in expected output.
* asmsrc1.s: Rewrite.
* asmsrc2.s: Rewrite.
* configure.in: Create arch.inc symlink.
* configure: Regenerate.
* Makefile.in (distclean): Delete arch.inc.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.asm/.Sanitize | 2 | ||||
-rwxr-xr-x | gdb/testsuite/gdb.asm/configure | 51 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/configure.in | 7 |
3 files changed, 60 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/.Sanitize b/gdb/testsuite/gdb.asm/.Sanitize index ee595d5..5c3c0a5 100644 --- a/gdb/testsuite/gdb.asm/.Sanitize +++ b/gdb/testsuite/gdb.asm/.Sanitize @@ -30,6 +30,8 @@ configure asm-source.exp asmsrc1.s asmsrc2.s +common.inc +d10v.inc Things-to-lose: diff --git a/gdb/testsuite/gdb.asm/configure b/gdb/testsuite/gdb.asm/configure index 26d7d25..fedef73 100755 --- a/gdb/testsuite/gdb.asm/configure +++ b/gdb/testsuite/gdb.asm/configure @@ -631,6 +631,12 @@ test "$host_alias" != "$target_alias" && program_prefix=${target_alias}- +archinc=common.inc +case ${target} in +d10v-*-*) archinc=d10v.inc ;; +esac + + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -886,6 +892,51 @@ fi; done rm -f conftest.s* EOF + +cat >> $CONFIG_STATUS <<EOF +ac_sources="$archinc" +ac_dests="arch.inc" +EOF + +cat >> $CONFIG_STATUS <<\EOF +srcdir=$ac_given_srcdir +while test -n "$ac_sources"; do + set $ac_dests; ac_dest=$1; shift; ac_dests=$* + set $ac_sources; ac_source=$1; shift; ac_sources=$* + + echo "linking $srcdir/$ac_source to $ac_dest" + + if test ! -r $srcdir/$ac_source; then + { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } + fi + rm -f $ac_dest + + # Make relative symlinks. + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` + if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then + # The dest file is in a subdirectory. + test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" + ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dest_dir_suffix. + ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dest_dir_suffix= ac_dots= + fi + + case "$srcdir" in + [/$]*) ac_rel_source="$srcdir/$ac_source" ;; + *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; + esac + + # Make a symlink if possible; otherwise try a hard link. + if ln -s $ac_rel_source $ac_dest 2>/dev/null || + ln $srcdir/$ac_source $ac_dest; then : + else + { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } + fi +done +EOF cat >> $CONFIG_STATUS <<EOF EOF diff --git a/gdb/testsuite/gdb.asm/configure.in b/gdb/testsuite/gdb.asm/configure.in index bded89e..8ff68ef 100644 --- a/gdb/testsuite/gdb.asm/configure.in +++ b/gdb/testsuite/gdb.asm/configure.in @@ -12,4 +12,11 @@ AC_SUBST(CC) AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../..) AC_CANONICAL_SYSTEM +dnl In default case we need to link with some file so use common.inc. +archinc=common.inc +case ${target} in +d10v-*-*) archinc=d10v.inc ;; +esac +AC_LINK_FILES($archinc,arch.inc) + AC_OUTPUT(Makefile) |