before we compile it.
defs.h: Protect against multiple inclusion.
param.h: Include defs.h.
+Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
+
+ * Makefile.dist (cplus-dem.o): Hack in an #include "param.h"
+ before we compile it.
+ defs.h: Protect against multiple inclusion.
+ param.h: Include defs.h.
+
Thu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
* i386-pinsn.c (OP_E): Change %d to 0x%x for consistency.
# When used with GDB, the demangler should never look for leading underscores
# because GDB strips them off during symbol read-in. Thus -Dnounderscore.
+# Adding "param.h" gets us the USG define without having to edit cplus-dem.c
+# (which is used by other programs which may or may not have a "param.h").
+# (no newline is added, so line numbers still work right).
cplus-dem.o : cplus-dem.c
- ${CC} -c ${CFLAGS} -Dnounderscore `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'`
+ sed <`echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` \
+ >cplus.tmp.c \
+ '1s,^,#include "param.h" ,'
+ ${CC} -c ${CFLAGS} -Dnounderscore cplus.tmp.c
+ mv cplus.tmp.o cplus-dem.o
# When used with GDB, the demangler should never look for leading underscores
# because GDB strips them off during symbol read-in. Thus -Dnounderscore.
+# Adding "param.h" gets us the USG define without having to edit cplus-dem.c
+# (which is used by other programs which may or may not have a "param.h").
+# (no newline is added, so line numbers still work right).
cplus-dem.o : cplus-dem.c
- ${CC} -c ${CFLAGS} -Dnounderscore `echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'`
+ sed <`echo ${srcdir}/cplus-dem.c | sed 's,^\./,,'` \
+ >cplus.tmp.c \
+ '1s,^,#include "param.h" ,'
+ ${CC} -c ${CFLAGS} -Dnounderscore cplus.tmp.c
+ mv cplus.tmp.o cplus-dem.o
along with GDB; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#if !defined (DEFS_H)
+#define DEFS_H
+
/* An address in the program being debugged. Host byte order. */
typedef unsigned int CORE_ADDR;
#if !defined (TARGET_CHAR_BIT)
#define TARGET_CHAR_BIT 8
#endif
+
+#endif /* no DEFS_H */
param-no-tm.h. Any future inclusions of param.h will be protected
against by the #if !defined stuff below. */
+/* Some tm files need CORE_ADDR, for example. */
+#include "defs.h"
+
#if !defined (PARAM_H)
#include "tm.h"
#endif