gdb-4.16.85: Corrupt GDB built with native make on Solaris and Digital Unix

Ian Lance Taylor
Mon Feb 9 12:39:00 GMT 1998

   From: "Peter.Schauer" <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
   Date: Mon, 9 Feb 98 21:11:06 MET

   This change:

   Fri Aug 15 20:53:13 1997  Ian Lance Taylor  <>

	   * (init.c): Don't use xargs.

   causes a corrupt GDB to be built when using native make under Solaris
   or Digital Unix.
   The generated init.c is missing many initialization functions, only the first
   two are there.

   Sorry, I had no time to investigate the cause of the failure, but reverting
   the change above gets rid of the problem.

   If we can't get it fixed for gdb-4.17, we should add a note in gdb/README
   that GNU make has to be used on these systems.

The appended patch appears to fix the problem.  This looks like a bug
in the native make programs on those systems.  I admit I don't know
why two different make programs would have the same bug.

I would not mind if this change were simply reverted.  I never meant
for that patch to be checked in to the main sources.  I checked it in
on a branch, and when somebody else merged the branch on to the trunk,
they merged that patch in as well.


RCS file: /cvs/cvsfiles/devo/gdb/,v
retrieving revision 1.605
diff -u -r1.605
---	1998/02/05 01:47:26	1.605
+++	1998/02/09 20:36:06
@@ -629,7 +629,7 @@
 	@echo '#include "ansidecl.h"' >>init.c-tmp
 	@echo 'extern void initialize_all_files PARAMS ((void));' >>init.c-tmp
 	@echo 'void initialize_all_files PARAMS ((void)) {' >>init.c-tmp
-	@echo $(OBS) $(TSOBS) | \
+	@-echo $(OBS) $(TSOBS) | \
 	tr ' ' '\012' | \
 	sed -e '/^Onindy.o/d' \
 	    -e '/^nindy.o/d' \

More information about the Gdb mailing list