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