* The following block of changes add support for debugging assembly
[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 gdbtk_files="README.GDBTK gdbtk.c gdbtcl gdbtcl2 gdbtk.tcl"
19
20 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
21 lose_these_too="${gdbtk_files} ${lose_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Deleting ${gdbtk_files}
24 fi
25 else
26 keep_these_too="${gdbtk_files} ${keep_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Keeping ${gdbtk_files}
29 fi
30 fi
31
32 # WinGDB files are not really ready to be part of FSF releases, but
33 # keep them for progressives and such.
34
35 mswin_files="mswin"
36
37 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
38 lose_these_too="${mswin_files} ${lose_these_too}"
39 if [ -n "${verbose}" ] ; then
40 echo Deleting ${mswin_files}
41 fi
42 else
43 keep_these_too="${mswin_files} ${keep_these_too}"
44 if [ -n "${verbose}" ] ; then
45 echo Keeping ${mswin_files}
46 fi
47 fi
48
49 gm_files="gmagic.c gmagic.h"
50
51 if ( echo $* | grep keep\-gm > /dev/null ) ; then
52 keep_these_too="${gm_files} ${keep_these_too}"
53 if [ -n "${verbose}" ] ; then
54 echo Keeping ${gm_files}
55 fi
56 else
57 lose_these_too="${gm_files} ${lose_these_too}"
58 if [ -n "${verbose}" ] ; then
59 echo Deleting ${gm_files}
60 fi
61 fi
62
63 tic80_files="tic80-tdep.c"
64
65 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
66 keep_these_too="${tic80_files} ${keep_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Keeping ${tic80_files}
69 fi
70 else
71 lose_these_too="${tic80_files} ${lose_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Deleting ${tic80_files}
74 fi
75 fi
76
77 d30v_files="d30v-tdep.c"
78
79 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
80 keep_these_too="${d30v_files} ${keep_these_too}"
81 if [ -n "${verbose}" ] ; then
82 echo Keeping ${d30v_files}
83 fi
84 else
85 lose_these_too="${d30v_files} ${lose_these_too}"
86 if [ -n "${verbose}" ] ; then
87 echo Deleting ${d30v_files}
88 fi
89 fi
90
91 # All files listed between the "Things-to-keep:" line and the
92 # "Files-to-sed:" line will be kept. All other files will be removed.
93 # Directories listed in this section will have their own Sanitize
94 # called. Directories not listed will be removed in their entirety
95 # with rm -rf.
96
97 Things-to-keep:
98
99 29k-share
100 COPYING
101 ChangeLog
102 ChangeLog-3.x
103 ChangeLog-9091
104 ChangeLog-92
105 ChangeLog-93
106 ChangeLog-94
107 ChangeLog-95
108 ChangeLog-96
109 Makefile.in
110 NEWS
111 README
112 TODO
113 a29k-tdep.c
114 a68v-nat.c
115 abug-rom.c
116 aclocal.m4
117 acconfig.h
118 alpha-nat.c
119 alpha-tdep.c
120 altos-xdep.c
121 annotate.c
122 annotate.h
123 arc-tdep.c
124 arm-convert.s
125 arm-tdep.c
126 arm-xdep.c
127 bcache.c
128 bcache.h
129 blockframe.c
130 breakpoint.c
131 breakpoint.h
132 buildsym.c
133 buildsym.h
134 c-exp.y
135 c-lang.c
136 c-lang.h
137 c-typeprint.c
138 c-valprint.c
139 call-cmds.h
140 ch-exp.c
141 ch-lang.c
142 ch-lang.h
143 ch-typeprint.c
144 ch-valprint.c
145 coff-solib.c
146 coff-solib.h
147 coffread.c
148 command.c
149 command.h
150 complaints.c
151 complaints.h
152 config
153 config.in
154 configure
155 configure.host
156 configure.in
157 configure.tgt
158 convex-tdep.c
159 convex-xdep.c
160 copying.awk
161 copying.c
162 core-aout.c
163 core-regset.c
164 core-sol2.c
165 corefile.c
166 corelow.c
167 cp-valprint.c
168 cpu32bug-rom.c
169 cxux-nat.c
170 d10v-tdep.c
171 dbug-rom.c
172 dbxread.c
173 dcache.c
174 dcache.h
175 debugify.h
176 debugify.c
177 defs.h
178 delta68-nat.c
179 demangle.c
180 dink32-rom.c
181 doc
182 dpx2-nat.c
183 dsrec.c
184 dst.h
185 dstread.c
186 dwarf2read.c
187 dwarfread.c
188 elfread.c
189 environ.c
190 environ.h
191 eval.c
192 exec.c
193 exc_request.defs
194 expprint.c
195 expression.h
196 f-exp.y
197 f-lang.c
198 f-lang.h
199 f-typeprint.c
200 f-valprint.c
201 findvar.c
202 fork-child.c
203 frame.h
204 gdb_stat.h
205 gdb_string.h
206 gdb-stabs.h
207 gdb.1
208 gdb.gdb
209 gdba.el
210 gdbcmd.h
211 gdbcore.h
212 gdbinit.in
213 gdbserver
214 gdbthread.h
215 gdbtypes.c
216 gdbtypes.h
217 gnu-nat.c
218 gnu-nat.h
219 gnu-regex.c
220 gnu-regex.h
221 go32-xdep.c
222 gould-tdep.c
223 gould-xdep.c
224 h8300-tdep.c
225 h8500-tdep.c
226 hp300ux-nat.c
227 hppa-tdep.c
228 hppab-nat.c
229 hppah-nat.c
230 hppam3-nat.c
231 hpread.c
232 hpux-thread.c
233 i386-stub.c
234 i386-tdep.c
235 i386aix-nat.c
236 i386b-nat.c
237 i386gnu-nat.c
238 i386ly-tdep.c
239 i386m3-nat.c
240 i386mach-nat.c
241 i386v-nat.c
242 i386v4-nat.c
243 i387-tdep.c
244 i960-tdep.c
245 infcmd.c
246 inferior.h
247 inflow.c
248 infptrace.c
249 infrun.c
250 inftarg.c
251 irix4-nat.c
252 irix5-nat.c
253 isi-xdep.c
254 jv-exp.y
255 jv-lang.c
256 jv-lang.h
257 jv-valprint.c
258 jv-typeprint.c
259 kdb-start.c
260 language.c
261 language.h
262 lynx-nat.c
263 m2-exp.y
264 m2-lang.c
265 m2-lang.h
266 m2-typeprint.c
267 m2-valprint.c
268 m3-nat.c
269 m32r-rom.c
270 m32r-stub.c
271 m32r-tdep.c
272 m68k-stub.c
273 m68k-tdep.c
274 m68knbsd-nat.c
275 m88k-nat.c
276 m88k-tdep.c
277 mac-defs.h
278 mac-xdep.c
279 mac-gdb.r
280 mac-nat.c
281 main.c
282 maint.c
283 mdebugread.c
284 mem-break.c
285 minimon.h
286 minsyms.c
287 mips-nat.c
288 mips-tdep.c
289 mipsm3-nat.c
290 mipsv4-nat.c
291 mipsread.c
292 mn10200-tdep.c
293 mn10300-tdep.c
294 mon960-rom.c
295 monitor.h
296 monitor.c
297 mpw-config.in
298 mpw-make.sed
299 msg.defs
300 msg_reply.defs
301 news-xdep.c
302 nindy-share
303 nindy-tdep.c
304 nlm
305 nlmread.c
306 notify.defs
307 ns32k-tdep.c
308 ns32km3-nat.c
309 objfiles.c
310 objfiles.h
311 ocd.c
312 ocd.h
313 op50-rom.c
314 os9kread.c
315 osf-share
316 osfsolib.c
317 parse.c
318 parser-defs.h
319 partial-stab.h
320 ppcbug-rom.c
321 ppc-bdm.c
322 printcmd.c
323 process_reply.defs
324 procfs.c
325 ptx4-nat.c
326 pyr-tdep.c
327 pyr-xdep.c
328 remote-adapt.c
329 remote-array.c
330 remote-bug.c
331 remote-e7000.c
332 remote-eb.c
333 remote-es.c
334 remote-est.c
335 remote-hms.c
336 remote-mips.c
337 remote-mm.c
338 remote-nindy.c
339 remote-nrom.c
340 remote-os9k.c
341 remote-rdp.c
342 remote-sds.c
343 remote-sim.c
344 remote-st.c
345 remote-udi.c
346 remote-utils.c
347 remote-utils.h
348 remote-vx.c
349 remote-vx29k.c
350 remote-vx68.c
351 remote-vx960.c
352 remote-vxmips.c
353 remote-vxsparc.c
354 remote.c
355 reply_mig_hack.awk
356 rs6000-nat.c
357 rs6000-tdep.c
358 rom68k-rom.c
359 saber.suppress
360 scm-exp.c
361 scm-lang.c
362 scm-lang.h
363 scm-tags.h
364 scm-valprint.c
365 ser-e7kpc.c
366 ser-go32.c
367 ser-mac.c
368 ser-ocd.c
369 ser-tcp.c
370 ser-unix.c
371 serial.c
372 serial.h
373 sh-stub.c
374 sh-tdep.c
375 sh3-rom.c
376 signals.h
377 sol-thread.c
378 solib.c
379 solib.h
380 somread.c
381 somsolib.c
382 somsolib.h
383 source.c
384 sparc-nat.c
385 sparc-stub.c
386 sparc-tdep.c
387 sparcl-stub.c
388 sparcl-tdep.c
389 sparclet-rom.c
390 sparclet-stub.c
391 srec.h
392 stabsread.c
393 stabsread.h
394 stack.c
395 standalone.c
396 stop-gdb.c
397 stuff.c
398 sun3-nat.c
399 sun386-nat.c
400 symfile.c
401 symfile.h
402 symm-nat.c
403 symm-tdep.c
404 symmisc.c
405 symtab.c
406 symtab.h
407 tahoe-tdep.c
408 target.c
409 target.h
410 terminal.h
411 testsuite
412 thread.c
413 top.c
414 top.h
415 typeprint.c
416 typeprint.h
417 ultra3-nat.c
418 ultra3-xdep.c
419 umax-xdep.c
420 utils.c
421 v850-tdep.c
422 v850ice.c
423 valarith.c
424 valops.c
425 valprint.c
426 valprint.h
427 value.h
428 values.c
429 vax-tdep.c
430 vx-share
431 w65-tdep.c
432 w89k-rom.c
433 win32-nat.c
434 xcoffread.c
435 xcoffsolib.c
436 xcoffsolib.h
437 xmodem.c
438 xmodem.h
439 z8k-tdep.c
440
441 # Things which are explicitly *not* kept, for now.
442
443 Things-to-lose:
444
445 HOW_TO_RELEASE
446 ser-go32-para.c
447
448 Do-last:
449
450 # Don't try to clean directories here, as the 'mv' command will fail.
451 # Also, grep fails on NFS mounted directories.
452 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
453 echo Catering to RMS by removing traces of \"gdbtk\"...
454 for i in * ; do
455 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
456 echo Removing traces of \"gdbtk\" out of $i...
457 cp $i new
458 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
459 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
460 echo Caching $i in .Recover...
461 mv $i .Recover
462 fi
463 mv new $i
464 fi
465 done
466 else
467 echo Leaving \"gdbtk\" in the sources...
468 for i in * ; do
469 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
470 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
471 cp $i new
472 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
473 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
474 echo Caching $i in .Recover...
475 mv $i .Recover
476 fi
477 mv new $i
478 fi
479 done
480 fi
481
482 if ( echo $* | grep keep\-gm > /dev/null ) ; then
483 for i in * ; do
484 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
485 if [ -n "${verbose}" ] ; then
486 echo Keeping gm stuff in $i
487 fi
488 fi
489 done
490 else
491 for i in * ; do
492 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
493 if [ -n "${verbose}" ] ; then
494 echo Removing traces of \"gm\" from $i...
495 fi
496 cp $i new
497 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
498 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
499 if [ -n "${verbose}" ] ; then
500 echo Caching $i in .Recover...
501 fi
502 mv $i .Recover
503 fi
504 mv new $i
505 fi
506 done
507 fi
508
509 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
510 for i in * ; do
511 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
512 if [ -n "${verbose}" ] ; then
513 echo Keeping v850e stuff in $i
514 fi
515 fi
516 done
517 else
518 for i in * ; do
519 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
520 if [ -n "${verbose}" ] ; then
521 echo Removing traces of \"v850e\" from $i...
522 fi
523 cp $i new
524 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
525 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
526 if [ -n "${verbose}" ] ; then
527 echo Caching $i in .Recover...
528 fi
529 mv $i .Recover
530 fi
531 mv new $i
532 fi
533 done
534 fi
535
536 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
537 for i in * ; do
538 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
539 if [ -n "${verbose}" ] ; then
540 echo Keeping sh4 stuff in $i
541 fi
542 fi
543 done
544 else
545 for i in * ; do
546 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
547 if [ -n "${verbose}" ] ; then
548 echo Removing traces of \"sh4\" from $i...
549 fi
550 cp $i new
551 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
552 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
553 if [ -n "${verbose}" ] ; then
554 echo Caching $i in .Recover...
555 fi
556 mv $i .Recover
557 fi
558 mv new $i
559 fi
560 done
561 fi
562
563 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
564 for i in * ; do
565 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
566 if [ -n "${verbose}" ] ; then
567 echo Keeping r5900 stuff in $i
568 fi
569 fi
570 done
571 else
572 for i in * ; do
573 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
574 if [ -n "${verbose}" ] ; then
575 echo Removing traces of \"r5900\" from $i...
576 fi
577 cp $i new
578 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
579 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
580 if [ -n "${verbose}" ] ; then
581 echo Caching $i in .Recover...
582 fi
583 mv $i .Recover
584 fi
585 mv new $i
586 fi
587 done
588 fi
589
590 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
591 for i in * ; do
592 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
593 if [ -n "${verbose}" ] ; then
594 echo Keeping tx19 stuff in $i
595 fi
596 fi
597 done
598 else
599 for i in * ; do
600 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
601 if [ -n "${verbose}" ] ; then
602 echo Removing traces of \"tx19\" from $i...
603 fi
604 cp $i new
605 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
606 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
607 if [ -n "${verbose}" ] ; then
608 echo Caching $i in .Recover...
609 fi
610 mv $i .Recover
611 fi
612 mv new $i
613 fi
614 done
615 fi
616
617 if ( echo $* | grep keep\-tx39 > /dev/null ) ; then
618 for i in * ; do
619 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
620 if [ -n "${verbose}" ] ; then
621 echo Keeping tx39 stuff in $i
622 fi
623 fi
624 done
625 else
626 for i in * ; do
627 if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
628 if [ -n "${verbose}" ] ; then
629 echo Removing traces of \"tx39\" from $i...
630 fi
631 cp $i new
632 sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/d' < $i > new
633 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
634 if [ -n "${verbose}" ] ; then
635 echo Caching $i in .Recover...
636 fi
637 mv $i .Recover
638 fi
639 mv new $i
640 fi
641 done
642 fi
643
644 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
645 for i in * ; do
646 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
647 if [ -n "${verbose}" ] ; then
648 echo Keeping tic80 stuff in $i
649 fi
650 fi
651 done
652 else
653 for i in * ; do
654 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
655 if [ -n "${verbose}" ] ; then
656 echo Removing traces of \"tic80\" from $i...
657 fi
658 cp $i new
659 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
660 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
661 if [ -n "${verbose}" ] ; then
662 echo Caching $i in .Recover...
663 fi
664 mv $i .Recover
665 fi
666 mv new $i
667 fi
668 done
669 fi
670
671 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
672 for i in * ; do
673 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
674 if [ -n "${verbose}" ] ; then
675 echo Keeping d30v stuff in $i
676 fi
677 fi
678 done
679 else
680 for i in * ; do
681 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
682 if [ -n "${verbose}" ] ; then
683 echo Removing traces of \"d30v\" from $i...
684 fi
685 cp $i new
686 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
687 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
688 if [ -n "${verbose}" ] ; then
689 echo Caching $i in .Recover...
690 fi
691 mv $i .Recover
692 fi
693 mv new $i
694 fi
695 done
696 fi
697
698 for i in * ; do
699 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
700 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
701 fi
702 done
703
704 #
705 # End of file.
This page took 0.059273 seconds and 5 git commands to generate.