* Support debugging using native MACH primitives on hppa*-*-osf*.
[deliverable/binutils-gdb.git] / gdb / .Sanitize
1 # .Sanitize for devo/gdb.
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18 arc_files="arc-tdep.c remote-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${arc_files}
24 fi
25 else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30 fi
31
32 # mswin gdb is not really gdbtk, but is close enough for now.
33
34 gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl mswin"
35
36 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
37 lose_these_too="${gdbtk_files} ${lose_these_too}"
38 if [ -n "${verbose}" ] ; then
39 echo Deleting ${gdbtk_files}
40 fi
41 else
42 keep_these_too="${gdbtk_files} ${keep_these_too}"
43 if [ -n "${verbose}" ] ; then
44 echo Keeping ${gdbtk_files}
45 fi
46 fi
47
48 # All files listed between the "Things-to-keep:" line and the
49 # "Files-to-sed:" line will be kept. All other files will be removed.
50 # Directories listed in this section will have their own Sanitize
51 # called. Directories not listed will be removed in their entirety
52 # with rm -rf.
53
54 Things-to-keep:
55
56 .gdbinit
57 29k-share
58 COPYING
59 ChangeLog
60 ChangeLog-3.x
61 ChangeLog-9091
62 ChangeLog-92
63 ChangeLog-93
64 ChangeLog-94
65 Makefile.in
66 NEWS
67 README
68 TODO
69 a29k-tdep.c
70 a68v-nat.c
71 alpha-nat.c
72 alpha-tdep.c
73 altos-xdep.c
74 annotate.c
75 annotate.h
76 arm-convert.s
77 arm-tdep.c
78 arm-xdep.c
79 array-rom.c
80 blockframe.c
81 breakpoint.c
82 breakpoint.h
83 buildsym.c
84 buildsym.h
85 c-exp.y
86 c-lang.c
87 c-lang.h
88 c-typeprint.c
89 c-valprint.c
90 call-cmds.h
91 ch-exp.y
92 ch-lang.c
93 ch-lang.h
94 ch-typeprint.c
95 ch-valprint.c
96 coff-solib.c
97 coff-solib.h
98 coffread.c
99 command.c
100 command.h
101 complaints.c
102 complaints.h
103 config
104 configure.in
105 convex-tdep.c
106 convex-xdep.c
107 copying.awk
108 copying.c
109 core-sol2.c
110 core-svr4.c
111 core.c
112 coredep.c
113 corelow.c
114 cp-valprint.c
115 cpu32bug-rom.c
116 cxux-nat.c
117 dbxread.c
118 dcache.c
119 dcache.h
120 defs.h
121 delta68-nat.c
122 demangle.c
123 doc
124 dpx2-nat.c
125 dst.h
126 dstread.c
127 dwarfread.c
128 elfread.c
129 environ.c
130 environ.h
131 eval.c
132 exec.c
133 expprint.c
134 expression.h
135 f-exp.y
136 f-lang.c
137 f-lang.h
138 f-typeprint.c
139 f-valprint.c
140 findvar.c
141 fork-child.c
142 frame.h
143 gcc.patch
144 gdb-stabs.h
145 gdb.1
146 gdb.gdb
147 gdba.el
148 gdbcmd.h
149 gdbcore.h
150 gdbserver
151 gdbtypes.c
152 gdbtypes.h
153 go32-xdep.c
154 gould-tdep.c
155 gould-xdep.c
156 h8300-tdep.c
157 h8500-tdep.c
158 hp300ux-nat.c
159 hppa-tdep.c
160 hppab-nat.c
161 hppah-nat.c
162 hppam3-nat.c
163 hpread.c
164 i386-stub.c
165 i386-tdep.c
166 i386aix-nat.c
167 i386b-nat.c
168 i386ly-tdep.c
169 i386m3-nat.c
170 i386mach-nat.c
171 i386v-nat.c
172 i386v4-nat.c
173 i387-tdep.c
174 i960-tdep.c
175 infcmd.c
176 inferior.h
177 inflow.c
178 infptrace.c
179 infrun.c
180 inftarg.c
181 irix4-nat.c
182 irix5-nat.c
183 isi-xdep.c
184 kdb-start.c
185 language.c
186 language.h
187 lynx-nat.c
188 m2-exp.y
189 m2-lang.c
190 m2-lang.h
191 m2-typeprint.c
192 m2-valprint.c
193 m3-nat.c
194 m68k-stub.c
195 m68k-tdep.c
196 m88k-nat.c
197 m88k-tdep.c
198 mac-defs.h
199 mac-xdep.c
200 macgdb.r
201 main.c
202 maint.c
203 mdebugread.c
204 mem-break.c
205 minimon.h
206 minsyms.c
207 mips-nat.c
208 mips-tdep.c
209 mipsm3-nat.c
210 mipsv4-nat.c
211 mipsread.c
212 monitor.h
213 monitor.c
214 mpw-config.in
215 mpw-make.in
216 news-xdep.c
217 nindy-share
218 nindy-tdep.c
219 nlm
220 nlmread.c
221 ns32k-tdep.c
222 ns32km3-nat.c
223 objfiles.c
224 objfiles.h
225 op50-rom.c
226 os9kread.c
227 osfsolib.c
228 parse.c
229 parser-defs.h
230 partial-stab.h
231 printcmd.c
232 procfs.c
233 ptx4-nat.c
234 pyr-tdep.c
235 pyr-xdep.c
236 regex.c
237 regex.h
238 remote-adapt.c
239 remote-array.c
240 remote-bug.c
241 remote-e7000.c
242 remote-eb.c
243 remote-es.c
244 remote-est.c
245 remote-hms.c
246 remote-mips.c
247 remote-mm.c
248 remote-nindy.c
249 remote-nrom.c
250 remote-os9k.c
251 remote-pa.c
252 remote-sim.c
253 remote-sim.h
254 remote-st.c
255 remote-udi.c
256 remote-utils.c
257 remote-utils.h
258 remote-vx.c
259 remote-vx29k.c
260 remote-vx68.c
261 remote-vx960.c
262 remote-vxmips.c
263 remote-vxsparc.c
264 remote-z8k.c
265 remote.c
266 rs6000-nat.c
267 rs6000-tdep.c
268 rom68k-rom.c
269 saber.suppress
270 ser-e7kpc.c
271 ser-go32.c
272 ser-mac.c
273 ser-tcp.c
274 ser-unix.c
275 serial.c
276 serial.h
277 sh-tdep.c
278 signals.h
279 solib.c
280 solib.h
281 somread.c
282 somsolib.c
283 somsolib.h
284 source.c
285 sparc-nat.c
286 sparc-stub.c
287 sparc-tdep.c
288 sparcl-stub.c
289 sparcl-tdep.c
290 sparclite
291 stabsread.c
292 stabsread.h
293 stack.c
294 standalone.c
295 stop-gdb.c
296 stuff.c
297 sun3-nat.c
298 sun386-nat.c
299 symfile.c
300 symfile.h
301 symm-nat.c
302 symm-tdep.c
303 symmisc.c
304 symtab.c
305 symtab.h
306 tahoe-tdep.c
307 target.c
308 target.h
309 terminal.h
310 testsuite
311 thread.c
312 thread.h
313 top.c
314 top.h
315 typeprint.c
316 typeprint.h
317 ultra3-nat.c
318 ultra3-xdep.c
319 umax-xdep.c
320 utils.c
321 valarith.c
322 valops.c
323 valprint.c
324 valprint.h
325 value.h
326 values.c
327 vax-tdep.c
328 vx-share
329 w65-tdep.c
330 w89k-rom.c
331 xcoffread.c
332 xcoffsolib.c
333 xcoffsolib.h
334 xmodem.c
335 xmodem.h
336 z8k-tdep.c
337
338 # Things which are explicitly *not* kept, for now.
339
340 Things-to-lose:
341
342 ser-go32-para.c
343
344 Do-last:
345
346 # Don't try to clean directories here, as the 'mv' command will fail.
347 # Also, grep fails on NFS mounted directories.
348 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
349 echo Catering to RMS by removing traces of \"gdbtk\"...
350 for i in * ; do
351 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
352 echo Removing traces of \"gdbtk\" out of $i...
353 cp $i new
354 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
355 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
356 echo Caching $i in .Recover...
357 mv $i .Recover
358 fi
359 mv new $i
360 fi
361 done
362 else
363 echo Leaving \"gdbtk\" in the sources...
364 for i in * ; do
365 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
366 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
367 cp $i new
368 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
369 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
370 echo Caching $i in .Recover...
371 mv $i .Recover
372 fi
373 mv new $i
374 fi
375 done
376 fi
377
378 r16_files="configure.in"
379
380 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
381 for i in $r16_files ; do
382 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
383 if [ -n "${verbose}" ] ; then
384 echo Keeping r16 stuff in $i
385 fi
386 fi
387 done
388 else
389 for i in $r16_files ; do
390 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
391 if [ -n "${verbose}" ] ; then
392 echo Removing traces of \"r16\" from $i...
393 fi
394 cp $i new
395 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
396 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
397 if [ -n "${verbose}" ] ; then
398 echo Caching $i in .Recover...
399 fi
400 mv $i .Recover
401 fi
402 mv new $i
403 fi
404 done
405 fi
406
407 arc_files="configure.in ChangeLog"
408
409 if ( echo $* | grep keep\-arc > /dev/null ) ; then
410 for i in $arc_files ; do
411 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
412 if [ -n "${verbose}" ] ; then
413 echo Keeping arc stuff in $i
414 fi
415 fi
416 done
417 else
418 for i in $arc_files ; do
419 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
420 if [ -n "${verbose}" ] ; then
421 echo Removing traces of \"arc\" from $i...
422 fi
423 cp $i new
424 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
425 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
426 if [ -n "${verbose}" ] ; then
427 echo Caching $i in .Recover...
428 fi
429 mv $i .Recover
430 fi
431 mv new $i
432 fi
433 done
434 fi
435
436 for i in * ; do
437 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
438 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
439 fi
440 done
441
442 #
443 # End of file.
This page took 0.050036 seconds and 5 git commands to generate.