From: Doug Evans Date: Wed, 13 May 1998 20:38:50 +0000 (+0000) Subject: * gdb.asm/common.inc: New file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa3b6d276b9e56469f189362fde57be895be5079;p=binutils-gdb.git * 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. --- diff --git a/gdb/testsuite/gdb.asm/.Sanitize b/gdb/testsuite/gdb.asm/.Sanitize index ee595d580c7..5c3c0a5c670 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 26d7d2575f1..fedef7398fd 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 @@ -885,6 +891,51 @@ s%@top_srcdir@%$top_srcdir%g fi; done rm -f conftest.s* +EOF + +cat >> $CONFIG_STATUS <> $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 <