From 17a56e138eed784127f873aa930ea5018dda71a0 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 27 May 1998 19:34:49 +0000 Subject: [PATCH] add vr4111 as a sanitization tag to get rid of vr4111 and vr4102 mentions. --- gdb/.Sanitize | 42 +++++++++++++++++++++++++++++++++++++++++- gdb/ChangeLog | 2 ++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/gdb/.Sanitize b/gdb/.Sanitize index e53bc7650a0..f4b57704496 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -102,6 +102,20 @@ else fi fi +vr4111_files="nec4102rom.c" + +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + keep_these_too="${vr4111_files} ${keep_these_too}" + if [ -n "${verbose}" ] ; then + echo Keeping ${vr4111_files} + fi +else + lose_these_too="${vr4111_files} ${lose_these_too}" + if [ -n "${verbose}" ] ; then + echo Deleting ${vr4111_files} + fi +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 @@ -309,7 +323,6 @@ mpw-config.in mpw-make.sed msg.defs msg_reply.defs -nec4102rom.c news-xdep.c nindy-share nindy-tdep.c @@ -767,6 +780,33 @@ else done fi +if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4111 stuff in $i + fi + fi + done +else + for i in * ; do + if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4111\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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\-ide > /dev/null ) ; then for i in * ; do if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f05eb37d552..6dd0d811412 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -247,6 +247,7 @@ Thu Apr 30 15:59:54 1998 Jason Molenda (crash@bugshack.cygnus.com) (local-maintainer-clean, do-maintainer-clean): New rules. Wed Apr 29 10:20:40 1998 John Metzler +start-sanitize-vr4111 * nec4102rom.c: New file implements ROM monitor adapter for nec-vr4102 board. This board hosts the vr4111 chip. This file @@ -254,6 +255,7 @@ Wed Apr 29 10:20:40 1998 John Metzler filter, new flags. This version does not support more than one breakpoint and resuming after a breakpoint in 16 bit mode is completely disfunctional. +end-sanitize-vr4111 * monitor.h: Defined additional hooks for dmpregs, configure_hooks and wait_filter. These additions require that all ROM monitor -- 2.30.2