[commit] Make "make clean" mo bettah

Michael Snyder
2011-02-22T03:22:23Z

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

I noticed an awful lot of files being left behind by "make clean".
Checking this in...

[-- Attachment #2: clean.txt --]
[-- Type: text/plain, Size: 16779 bytes --]

2011-02-21 Michael Snyder <msnyder@vmware.com>

* Makefile.in: Update for make clean.
* gdb.ada/Makefile.in: Ditto.
* gdb.arch/Makefile.in: Ditto.
* gdb.asm/Makefile.in: Ditto.
* gdb.base/Makefile.in: Ditto.
* gdb.cp/Makefile.in: Ditto.
* gdb.dwarf2/Makefile.in: Ditto.
* gdb.java/Makefile.in: Ditto.
* gdb.mi/Makefile.in: Ditto.
* gdb.modula2/Makefile.in: Ditto.
* gdb.python/Makefile.in: Ditto.
* gdb.server/Makefile.in: Ditto.
* gdb.stabs/Makefile.in: Ditto.
* gdb.threads/Makefile.in: Ditto.
* gdb.trace/Makefile.in: Ditto.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/Makefile.in,v
retrieving revision 1.34
diff -u -p -u -p -r1.34 Makefile.in
--- Makefile.in 1 Jan 2011 15:33:28 -0000 1.34
+++ Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -34,7 +34,7 @@ EXEEXT = @EXEEXT@
SUBDIRS = @subdirs@
RPATH_ENVVAR = @RPATH_ENVVAR@
ALL_SUBDIRS = gdb.ada gdb.arch gdb.asm gdb.base gdb.cp gdb.disasm \
- gdb.dwarf2 \
+ gdb.dwarf2 gdb.stabs \
gdb.fortran gdb.server gdb.java gdb.mi gdb.multi \
gdb.objc gdb.opencl gdb.opt gdb.pascal gdb.python gdb.threads \
gdb.trace gdb.xml \
@@ -212,7 +212,8 @@ subdirs:
done

clean mostlyclean:
- -rm -f *~ core *.o a.out xgdb *.x *.grt
+ -rm -f *~ core *.o a.out xgdb *.x *.grt bigcore.corefile
+ -rm - core.*
if [ x"${ALL_SUBDIRS}" != x ] ; then \
for dir in ${ALL_SUBDIRS}; \
do \
Index: gdb.ada/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/Makefile.in,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 Makefile.in
--- gdb.ada/Makefile.in 10 Sep 2008 17:24:06 -0000 1.5
+++ gdb.ada/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -24,6 +24,7 @@ EXECUTABLES = \
fun_in_declare/foo \
funcall_param/foo \
homonym/homonym_main \
+ info_types \
interface/foo \
lang_switch/lang_switch \
nested/hello \
Index: gdb.arch/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/Makefile.in,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile.in
--- gdb.arch/Makefile.in 15 Jan 2004 21:16:38 -0000 1.3
+++ gdb.arch/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,13 +1,15 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES = altivec-abi altivec-regs
+EXECUTABLES = altivec-abi altivec-regs amd64-byte amd64-disp-step \
+ amd64-dword amd64-i386-address amd64-word i386-permbkpt \
+ i386-signal i386-sse

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."

clean mostlyclean:
- -rm -f *~ *.o a.out *.x *.ci *.tmp
+ -rm -f *~ *.o a.out *.x *.ci *.tmp gcore.test system-gcore
-rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES)

distclean maintainer-clean realclean: clean
Index: gdb.asm/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/Makefile.in,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile.in
--- gdb.asm/Makefile.in 9 Jan 2003 18:50:23 -0000 1.3
+++ gdb.asm/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,7 +1,7 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES =
+EXECUTABLES = asm-source
MISCELLANEOUS = arch.inc

all info install-info dvi install uninstall installcheck check:
Index: gdb.base/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/Makefile.in,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 Makefile.in
--- gdb.base/Makefile.in 11 Aug 2010 16:48:26 -0000 1.7
+++ gdb.base/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,22 +1,55 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES = all-types annota1 bitfields break \
- call-ar-st call-rt-st call-strs callfuncs callfwmall \
- chng-syms commands compiler condbreak constvars coremaker \
- dbx-test display ending-run execd-prog exprs \
- foll-exec foll-fork foll-vfork funcargs int-type interrupt jump \
- langs list long_long mips_pro miscexprs nodebug opaque overlays \
- pointers pointers2 printcmds ptype \
- recurse reread reread1 restore return run \
- scope section_command setshow setvar shmain sigall signals \
- solib solib_sl so-impl-ld so-indr-cl \
- step-line step-test structs structs2 \
- twice-tmp varargs vforked-prog watchpoint whatis catch-syscall \
+EXECUTABLES = a2-run advance all-types annota1 annota1-watch_thread_num \
+ annota3 anon args arrayidx async attach attach-pie-misread \
+ attach2 auxv bang\! bfp-test bigcore bitfields bitfields2 \
+ break break-always break-entry break-interp-test breako2 \
+ breakpoint-shadow call-ar-st call-rt-st call-sc-t* call-signals \
+ call-strs callexit callfuncs callfwmall charset checkpoint \
+ chng-syms code_elim1 code_elim2 commands compiler complex \
+ condbreak consecutive constvars coremaker cursal cvexpr \
+ dbx-test del disasm-end-cu display dump dup-sect dup-sect.debug \
+ dup-sect.stripped ending-run execd-prog expand-psymtabs exprs \
+ fileio find finish fixsection float foll-exec foll-fork foll-vfork \
+ frame-args freebpcmd fullname funcargs gcore \
+ gcore-buffer-overflow-012* \
+ gdb1090 gdb11530 gdb11531 gdb1250 gdb1555-main gdb1821 gdbvars \
+ hashline1 hashline2 hashline3 hbreak hook-stop-continue \
+ hook-stop-frame huge included infnan info-target int-type \
+ interrupt jit-main jump label langs lineinc list longjmp long_long \
+ macscp mips_pro miscexprs moribund-step multi-forks nodebug \
+ nofield nostdlib opaque overlays pc-fp pending permission \
+ pie-execl1 pie-execl2 pointers pointers2 pr11022 prelinkt \
+ prelinkt.debug prelinkt.stripped printcmds prologue psymtab \
+ ptr-typedef ptype randomize recurse relational relativedebug \
+ reread reread1 restore return return-nodebug-* return2 run \
+ savedregs scope section_command sep sepdebug sepdebug.stripped \
+ sepdebug2 sepdebug2.debug sepdebug2.stripped sepsymtab \
+ sepsymtab.debug sepsymtab.stripped setshow setvar shmain shreloc \
+ sigall sigaltstack sigbpt sigchld siginfo siginfo-addr \
+ siginfo-infcall siginfo-obj signals signull sigrepeat sigstep \
+ sizeof solib solib-corrupted solib-display-main solib-nodir \
+ solib-overlap-main-0x40000000 solib-symbol-main solib-weak \
+ solib-weak-lib2 solib_sl so-impl-ld so-indr-cl \
+ stack-checking start step-break step-bt step-line step-resume-infcall \
+ step-test store structs-t* structs2 structs3 \
+ symbol-without-target_section term tui-layout twice-tmp \
+ type-opaque-main ui-redirect unload until unwindonsignal \
+ valgrind-db-attach value-double-free varargs vforked-prog \
+ volatile watch-cond watch-cond-infcall watch-non-mem watch-read \
+ watch-vfork watch_thread_num watchpoint watchpoint-cond-gone \
+ watchpoint-hw watchpoint-hw-hit-once watchpoint-solib watchpoints \
+ wchar whatis whatis-exp catch-syscall \
pr10179 gnu_vector

-MISCELLANEOUS = coremmap.data ../foobar.baz \
- shr1.sl shr2.sl solib_sl.sl solib1.sl solib2.sl
+MISCELLANEOUS = coremmap.data ../foobar.baz fixsectshr.sl \
+ pendshr.sl shreloc1.sl shreloc2.sl twice-tmp.c \
+ shr1.sl shr2.sl solib_sl.sl solib1.sl solib2.sl \
+ unloadshr.sl unloadshr2.sl watchpoint-solib-shr.sl \
+ weaklib1.sl weaklib2.sl hashline1.c hashline2.c hashline3.c \
+ auxv.gcore bigcore.corefile *.core *.debug *.stripped \
+ gcore-buffer-overflow.test gcore.test shreloc.txt tmp-fullname.c

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."
@@ -24,7 +57,7 @@ all info install-info dvi install uninst
clean mostlyclean:
-rm -f *~ *.o a.out xgdb *.x *.ci *.tmp
-rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES)
- -rm -f $(MISCELLANEOUS) twice-tmp.c
+ -rm -f $(MISCELLANEOUS)

distclean maintainer-clean realclean: clean
-rm -f *~ core
Index: gdb.cp/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/Makefile.in,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 Makefile.in
--- gdb.cp/Makefile.in 21 Apr 2010 17:33:54 -0000 1.11
+++ gdb.cp/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,9 +1,18 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES = ambiguous annota2 anon-union cplusfuncs cttiadd \
- derivation inherit local member-ptr method misc \
- overload ovldbreak ref-typ ref-typ2 templates userdef virtfunc namespace \
+EXECUTABLES = abstract-origin ambiguous annota2 annota3 anon-union \
+ arg-reference bool breakpoint bs15503 call-c casts class2 \
+ classes converts cpexprs cplusfuncs cttiadd derivation \
+ exception expand-sals extern-c formatted-ref fpointer gdb1355 \
+ gdb2384 hang infcall-dlopen inherit koenig local m-data m-static \
+ mb-ctor mb-inline mb-templates member-ptr method misc namespace \
+ namespace-nested-import nextoverthrow noparam nsdecl nsimport \
+ nsnested nsnoimports nsrecurs nsstress nsusing operator oranking \
+ overload overload-const ovldbreak pass-by-ref pr-1023 pr-1210 \
+ pr-574 pr10728 pr12028 pr9631 printmethod psmang ptype-cv-cp \
+ re-set-overloaded ref-typ ref-typ2 rtti shadow smartp temargs \
+ templates try_catch typedef-operator userdef virtbase virtfunc \
ref-types ref-params method2 pr9594 gdb2495 virtfunc2 pr9067 \
pr1072 pr10687 pr9167

Index: gdb.dwarf2/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/Makefile.in,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 Makefile.in
--- gdb.dwarf2/Makefile.in 1 Jan 2011 15:33:44 -0000 1.7
+++ gdb.dwarf2/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -21,7 +21,8 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES = *.x pr10770
+EXECUTABLES = *.x pr10770 dw2-cp-infcall-ref-static dw2-inline-param \
+ dw2-noloc dw2-ranges dw2-ref-missing-frame dw2-unresolved

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."
Index: gdb.java/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.java/Makefile.in,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile.in
--- gdb.java/Makefile.in 9 Jan 2003 18:50:26 -0000 1.2
+++ gdb.java/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -15,7 +15,7 @@ all info install-info dvi install uninst
EXPECT=${EXPECT}

clean mostlyclean:
- -rm -f *.o ${OBJS} *.class *.exe *~ core
+ -rm -f *.o ${OBJS} *.class *.exe *~ core jmain jmisc jnpe jprint

distclean maintainer-clean realclean: clean
-rm -f Makefile config.status config.log
Index: gdb.mi/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/Makefile.in,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile.in
--- gdb.mi/Makefile.in 9 Jan 2003 18:50:26 -0000 1.4
+++ gdb.mi/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,15 +1,26 @@
VPATH = @srcdir@
srcdir = @srcdir@

-PROGS = basics c_variable cpp_variable var-cmd
+PROGS = basics c_variable cpp_variable var-cmd dw2-ref-missing-frame \
+ gdb669-pthreads gdb701 gdb792 mi-async mi-basics mi-break \
+ mi-cli mi-console mi-disassemble mi-eval mi-file mi-file-transfer \
+ mi-non-stop mi-non-stop-exit mi-ns-stale-regcache mi-nsintrall \
+ mi-nsmoribund mi-nsthrexec mi-pending mi-pthreads mi-read-memory \
+ mi-regs mi-return mi-simplerun mi-stack mi-stepi mi-syn-frame \
+ mi-var-block mi-var-child mi-var-cmd mi-var-cp mi-var-display \
+ mi-var-invalidate mi-var-invalidate_bis mi-watch mi2-basics \
+ mi2-break mi2-cli mi2-disassemble mi2-eval mi2-file mi2-pthreads \
+ mi2-regs mi2-return mi2-simplerun mi2-stepi mi2-var-block \
+ mi2-var-child mi2-var-cmd mi2-var-display mi2-watch until

-MISCELLANEOUS = testcmds
+MISCELLANEOUS = mi-pendshr.sl

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."

clean mostlyclean:
-rm -f *.ci *.o $(OBJS) $(PROGS) *~ core
+ -rm -f $(MISCELLANEOUS)

distclean maintainer-clean realclean: clean
-rm -f Makefile config.status config.log
Index: gdb.modula2/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.modula2/Makefile.in,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 Makefile.in
--- gdb.modula2/Makefile.in 1 Jan 2011 15:33:48 -0000 1.5
+++ gdb.modula2/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -20,7 +20,7 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES =
+EXECUTABLES = unbounded1

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."
Index: gdb.python/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/Makefile.in,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 Makefile.in
--- gdb.python/Makefile.in 13 Oct 2010 20:08:45 -0000 1.9
+++ gdb.python/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -2,8 +2,9 @@ VPATH = @srcdir@
srcdir = @srcdir@

EXECUTABLES = py-type py-value py-prettyprint py-template py-block \
- py-symbol py-mi py-breakpoint py-inferior py-infthread \
- py-shared python lib-types
+ py-symbol py-mi py-breakpoint py-inferior py-infthread \
+ py-shared python lib-types py-events py-evthreads py-frame \
+ py-pp-maint py-progspace py-section-script

MISCELLANEOUS = py-shared-sl.sl

Index: gdb.server/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.server/Makefile.in,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 Makefile.in
--- gdb.server/Makefile.in 11 Apr 2005 14:13:14 -0000 1.1
+++ gdb.server/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,7 +1,7 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES =
+EXECUTABLES = ext-attach ext-run file-transfer server-mon server-run

MISCELLANEOUS =

Index: gdb.stabs/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.stabs/Makefile.in,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile.in
--- gdb.stabs/Makefile.in 19 Jan 2005 18:40:12 -0000 1.2
+++ gdb.stabs/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -7,7 +7,7 @@ all:
#### host, target, and site specific Makefile frags come in here.

clean mostlyclean:
- -rm -f *.o *~ core tmp.c tmp.s weird.s errs
+ -rm -f *.o *~ core tmp.c tmp.s weird.s errs exclfwd gdb11479

distclean maintainer-clean realclean: clean
-rm -f Makefile config.status config.log
Index: gdb.threads/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/Makefile.in,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile.in
--- gdb.threads/Makefile.in 9 Jan 2003 18:50:27 -0000 1.2
+++ gdb.threads/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -1,13 +1,22 @@
VPATH = @srcdir@
srcdir = @srcdir@

-EXECUTABLES = pthreads
+EXECUTABLES = attach-into-signal attach-stopped attachstop-mt \
+ bp_in_thread current-lwp-dead execl execl1 fork-child-threads \
+ fork-thread-pending gcore-pthreads hand-call-in-threads \
+ ia64-sigill interrupted-hand-call killed linux-dp \
+ local-watch-wrong-thread manythreads multi-create pending-step \
+ print-threads pthreads pthread_cond_wait schedlock sigthread \
+ staticthreads switch-threads thread-execl thread-specific \
+ thread_check thread_events threadapply threxit-hop-specific \
+ tls tls-main tls-nodebug watchthreads watchthreads-reorder \
+ watchthreads2

all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."

clean mostlyclean:
- -rm -f *~ *.o a.out xgdb *.x *.ci *.tmp core* $(EXECUTABLES)
+ -rm -f *~ *.o a.out xgdb *.x *.ci *.tmp core* $(EXECUTABLES) gcore.test

distclean maintainer-clean realclean: clean
-rm -f Makefile config.status config.log config.h
Index: gdb.trace/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/Makefile.in,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile.in
--- gdb.trace/Makefile.in 28 May 2010 23:47:40 -0000 1.4
+++ gdb.trace/Makefile.in 22 Feb 2011 03:19:27 -0000
@@ -3,12 +3,16 @@ srcdir = @srcdir@

.PHONY: all clean mostlyclean distclean realclean

+PROGS = ax backtrace deltrace infotrace packetlen passc-dyn passcount \
+ report save-trace tfile tfind tracecmd tsv unavailable while-dyn \
+ while-stepping
+
all info install-info dvi install uninstall installcheck check:
@echo "Nothing to be done for $@..."

clean mostlyclean:
-rm -f actions circ collection
- -rm -f *.o *.diff *~ *.bad core sh3 hppa mn10300
+ -rm -f *.o *.diff *~ *.bad core sh3 hppa mn10300 $(PROGS)

distclean maintainer-clean realclean: clean
-rm -f Makefile config.status config.log