Use trace_one_insn in trace functions. Buffer up trace data so that
[deliverable/binutils-gdb.git] / sim / .Sanitize
1 # .Sanitize for devo/sim.
2
3 # Each directory to survive it's way into a release will need a file
4 # like this one called "./.Sanitize". All keyword lines must exist,
5 # and must exist in the order specified by this file. Each directory
6 # in the tree will be processed, top down, in the following order.
7
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done. Blank lines will also be squashed
10 # out.
11
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this
15
16 Do-first:
17
18 igen_files="igen"
19
20 d30v_files="d30v testsuite"
21 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
22 keep_these_too="${d30v_files} ${igen_files} ${keep_these_too}"
23 igen_files=
24 else
25 lose_these_too="${d30v_files} ${lose_these_too}"
26 fi
27
28 tic80_files="tic80"
29 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
30 keep_these_too="${tic80_files} ${igen_files} ${keep_these_too}"
31 igen_files=
32 else
33 lose_these_too="${tic80_files} ${lose_these_too}"
34 fi
35
36 v850_files="v850"
37 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
38 keep_these_too="${v850_files} ${igen_files} ${keep_these_too}"
39 igen_files=
40 else
41 lose_these_too="${v850_files} ${lose_these_too}"
42 fi
43
44 lose_these_too="${igen_files} ${lose_these_too}"
45
46 # All files listed between the "Things-to-keep:" line and the
47 # "Files-to-sed:" line will be kept. All other files will be removed.
48 # Directories listed in this section will have their own Sanitize
49 # called. Directories not listed will be removed in their entirety
50 # with rm -rf.
51
52 Things-to-keep:
53
54 ChangeLog
55 Makefile.in
56 README-HACKING
57 arm
58 configure
59 configure.in
60 common
61 d10v
62 erc32
63 h8300
64 h8500
65 m32r
66 mips
67 mn10200
68 mn10300
69 ppc
70 sh
71 w65
72 v850
73 z8k
74
75 Things-to-lose:
76
77
78 Do-last:
79
80 d30v_files="configure configure.in ChangeLog"
81 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
82 for i in $d30v_files ; do
83 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
84 if [ -n "${verbose}" ] ; then
85 echo Keeping d30v stuff in $i
86 fi
87 fi
88 done
89 else
90 for i in $d30v_files ; do
91 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
92 if [ -n "${verbose}" ] ; then
93 echo Removing traces of \"d30v\" from $i...
94 fi
95 cp $i new
96 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
97 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
98 if [ -n "${verbose}" ] ; then
99 echo Caching $i in .Recover...
100 fi
101 mv $i .Recover
102 fi
103 mv new $i
104 fi
105 done
106 fi
107
108 tic80_files="configure configure.in ChangeLog"
109 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
110 for i in $tic80_files ; do
111 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
112 if [ -n "${verbose}" ] ; then
113 echo Keeping tic80 stuff in $i
114 fi
115 fi
116 done
117 else
118 for i in $tic80_files ; do
119 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Removing traces of \"tic80\" from $i...
122 fi
123 cp $i new
124 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
125 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
126 if [ -n "${verbose}" ] ; then
127 echo Caching $i in .Recover...
128 fi
129 mv $i .Recover
130 fi
131 mv new $i
132 fi
133 done
134 fi
135
136 v850_files="configure configure.in ChangeLog"
137 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
138 for i in $v850_files ; do
139 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
140 if [ -n "${verbose}" ] ; then
141 echo Keeping v850eq stuff in $i
142 fi
143 fi
144 done
145 else
146 for i in $v850_files ; do
147 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
148 if [ -n "${verbose}" ] ; then
149 echo Removing traces of \"v850eq\" from $i...
150 fi
151 cp $i new
152 sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
153 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
154 if [ -n "${verbose}" ] ; then
155 echo Caching $i in .Recover...
156 fi
157 mv $i .Recover
158 fi
159 mv new $i
160 fi
161 done
162 fi
163 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
164 for i in $v850_files ; do
165 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Keeping v850e stuff in $i
168 fi
169 fi
170 done
171 else
172 for i in $v850_files ; do
173 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
174 if [ -n "${verbose}" ] ; then
175 echo Removing traces of \"v850e\" from $i...
176 fi
177 cp $i new
178 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
179 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
180 if [ -n "${verbose}" ] ; then
181 echo Caching $i in .Recover...
182 fi
183 mv $i .Recover
184 fi
185 mv new $i
186 fi
187 done
188 fi
189
190
191 for i in * ; do
192 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
193 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
194 fi
195 done
196
197 # End of file.
This page took 0.033094 seconds and 4 git commands to generate.