From 1294727e84302ebf0ad09137ac872e20924e0dcb Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 28 Nov 1997 19:18:01 +0000 Subject: [PATCH] * gennltvals.sh: Redo syscall support to allow sanitization. * nltvals.def: Regenerated. And add d30v sanitization. --- sim/common/.Sanitize | 28 ++++++++++++++++++++++++++++ sim/common/ChangeLog | 9 ++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/sim/common/.Sanitize b/sim/common/.Sanitize index daea7302aa..3490715572 100644 --- a/sim/common/.Sanitize +++ b/sim/common/.Sanitize @@ -112,4 +112,32 @@ Things-to-lose: Do-last: +d30v_files="ChangeLog gennltvals.sh nltvals.def" +if ( echo $* | grep keep\-d30v > /dev/null ) ; then + for i in $d30v_files ; do + if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping d30v stuff in $i + fi + fi + done +else + for i in $d30v_files ; do + if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"d30v\" from $i... + fi + cp $i new + sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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 + # End of file. diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ebb06526a1..5a508a05e6 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 28 11:15:05 1997 Doug Evans + + * gennltvals.sh: Redo syscall support to allow sanitization. + * nltvals.def: Regenerated. + Wed Nov 26 16:49:38 1997 Michael Meissner * syscall.c (cb_syscall): If writing to stdout or stderr, flush @@ -22,8 +27,10 @@ Tue Nov 25 20:12:46 1997 Michael Meissner Tue Nov 25 00:12:38 1997 Doug Evans +start-sanitize-d30v * gennltvals.sh: Generate syscall values for d30v. - Use libgloss/syscall.h for sparc. +end-sanitize-d30v + * gennltvals.sh: Use libgloss/syscall.h for sparc. * nltvals.def: Regenerate. * callback.c (os_stat): Make 3rd arg a host struct stat ptr. -- 2.34.1