* gennltvals.sh: Redo syscall support to allow sanitization.
authorDoug Evans <dje@google.com>
Fri, 28 Nov 1997 19:18:01 +0000 (19:18 +0000)
committerDoug Evans <dje@google.com>
Fri, 28 Nov 1997 19:18:01 +0000 (19:18 +0000)
* nltvals.def: Regenerated.
And add d30v sanitization.

sim/common/.Sanitize
sim/common/ChangeLog

index daea7302aa1b9c30ca064d568938464c83ec5b89..3490715572697373850f7f55c1d87d31956756ae 100644 (file)
@@ -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.
index ebb06526a142fd41b647fa56a71821b4839f66dd..5a508a05e6c3db5dfa6f3a7c0bd4ffb76c878a9d 100644 (file)
@@ -1,3 +1,8 @@
+Fri Nov 28 11:15:05 1997  Doug Evans  <devans@canuck.cygnus.com>
+
+       * gennltvals.sh: Redo syscall support to allow sanitization.
+       * nltvals.def: Regenerated.
+
 Wed Nov 26 16:49:38 1997  Michael Meissner  <meissner@cygnus.com>
 
        * syscall.c (cb_syscall): If writing to stdout or stderr, flush
@@ -22,8 +27,10 @@ Tue Nov 25 20:12:46 1997  Michael Meissner  <meissner@cygnus.com>
 
 Tue Nov 25 00:12:38 1997  Doug Evans  <devans@seba.cygnus.com>
 
+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.