aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-20 02:36:21 +0000
committerDoug Evans <dje@google.com>1998-01-20 02:36:21 +0000
commit36de6f40d4621521b996031c3a22c31000092538 (patch)
tree46a97ffefc347401577a22396cd5d191bc7b16c4
parent59ae1b0fa9386fb26e6f4fdad7deb0c1d94d6f30 (diff)
downloadgdb-36de6f40d4621521b996031c3a22c31000092538.zip
gdb-36de6f40d4621521b996031c3a22c31000092538.tar.gz
gdb-36de6f40d4621521b996031c3a22c31000092538.tar.bz2
sanitize keep-cygnus cgen generation
-rw-r--r--sim/common/.Sanitize36
-rw-r--r--sim/common/ChangeLog2
-rw-r--r--sim/common/Make-common.in4
3 files changed, 41 insertions, 1 deletions
diff --git a/sim/common/.Sanitize b/sim/common/.Sanitize
index fc5d179..a939e15 100644
--- a/sim/common/.Sanitize
+++ b/sim/common/.Sanitize
@@ -15,6 +15,13 @@
Do-first:
+cygnus_files="cgen.sh"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+ keep_these_too="${cygnus_files} ${keep_these_too}"
+else
+ lose_these_too="${cygnus_files} ${lose_these_too}"
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -28,7 +35,6 @@ Make-common.in
Makefile.in
aclocal.m4
callback.c
-cgen.sh
cgen-mem.h
cgen-ops.h
cgen-scache.c
@@ -140,4 +146,32 @@ else
done
fi
+cygnus_files="ChangeLog Make-common.in"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+ for i in $cygnus_files ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping cygnus stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $cygnus_files ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"cygnus\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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 59408c3..24c83fe 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,7 +1,9 @@
Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
+start-sanitize-cygnus
* Make-common.in (cgen-{arch,cpu,decode}): New targets.
* cgen.sh: New file.
+end-sanitize-cygnus
* cgen-scache.h: Deleted.
* cgen-scache.c: Only compile contents if WITH_SCACHE.
(scache_init): Use runtime computed size of SCACHE.
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 9ed1bb3..874aa09 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -479,6 +479,8 @@ stamp-h: config.in config.status
.gdbinit: # config.status $(srccom)/gdbinit.in
CONFIG_FILES=$@:../common/gdbinit.in CONFIG_HEADERS= $(SHELL) ./config.status
+# start-sanitize-cygnus
+
# CGEN support
SCHEME = @SCHEME@
@@ -526,4 +528,6 @@ cgen-decode: force
$(srccgen) $(CGEN_VERBOSE) \
$(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
+# end-sanitize-cygnus
+
## End COMMON_POST_CONFIG_FRAG