aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-09-17 23:45:41 +0000
committerNick Clifton <nickc@redhat.com>1997-09-17 23:45:41 +0000
commit2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57 (patch)
tree45907be7bba4f49b93114bec6beb0c8407072f7a /ld/emulparams
parent03d532924421f3dcb3cfdb820e1be189aaf618e4 (diff)
downloadgdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.zip
gdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.tar.gz
gdb-2e6fa283b4cb701a78f1b5a9b9c39db7ae025e57.tar.bz2
Added support for the call table data area.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/.Sanitize69
1 files changed, 61 insertions, 8 deletions
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize
index 0643ba9..454ebf6 100644
--- a/ld/emulparams/.Sanitize
+++ b/ld/emulparams/.Sanitize
@@ -31,14 +31,6 @@ else
lose_these_too="${tic80_files} ${lose_these_too}"
fi
-v850_files="v850.sh"
-
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
- keep_these_too="${v850_files} ${keep_these_too}"
-else
- lose_these_too="${v850_files} ${lose_these_too}"
-fi
-
# All files listed between the "Things-to-keep:" line and the
# "Do-last:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -138,6 +130,7 @@ sparcnbsd.sh
st2000.sh
sun3.sh
sun4.sh
+v850.sh
vanilla.sh
vax.sh
vsta.sh
@@ -152,3 +145,63 @@ Things-to-lose:
# done.
Do-last:
+
+v850e_files="v850.sh"
+
+if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850eq stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850eq\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+if ( echo $* | grep keep\-v850e > /dev/null ) ; then
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850e stuff in $i
+ fi
+ fi
+ done
+else
+ if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ true
+ else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850e\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+ fi
+fi
+