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