* 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.
This commit is contained in:
parent
c93a350722
commit
c1ace5b596
5 changed files with 31 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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)
|
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.
|
* i386-pinsn.c (OP_E): Change %d to 0x%x for consistency.
|
||||||
|
|
|
@ -503,5 +503,12 @@ force_update :
|
||||||
|
|
||||||
# When used with GDB, the demangler should never look for leading underscores
|
# When used with GDB, the demangler should never look for leading underscores
|
||||||
# because GDB strips them off during symbol read-in. Thus -Dnounderscore.
|
# 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
|
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
|
||||||
|
|
|
@ -503,5 +503,12 @@ force_update :
|
||||||
|
|
||||||
# When used with GDB, the demangler should never look for leading underscores
|
# When used with GDB, the demangler should never look for leading underscores
|
||||||
# because GDB strips them off during symbol read-in. Thus -Dnounderscore.
|
# 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
|
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
|
||||||
|
|
|
@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License
|
||||||
along with GDB; see the file COPYING. If not, write to
|
along with GDB; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
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. */
|
/* An address in the program being debugged. Host byte order. */
|
||||||
typedef unsigned int CORE_ADDR;
|
typedef unsigned int CORE_ADDR;
|
||||||
|
|
||||||
|
@ -171,3 +174,5 @@ char *baud_rate;
|
||||||
#if !defined (TARGET_CHAR_BIT)
|
#if !defined (TARGET_CHAR_BIT)
|
||||||
#define TARGET_CHAR_BIT 8
|
#define TARGET_CHAR_BIT 8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* no DEFS_H */
|
||||||
|
|
|
@ -21,6 +21,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
param-no-tm.h. Any future inclusions of param.h will be protected
|
param-no-tm.h. Any future inclusions of param.h will be protected
|
||||||
against by the #if !defined stuff below. */
|
against by the #if !defined stuff below. */
|
||||||
|
|
||||||
|
/* Some tm files need CORE_ADDR, for example. */
|
||||||
|
#include "defs.h"
|
||||||
|
|
||||||
#if !defined (PARAM_H)
|
#if !defined (PARAM_H)
|
||||||
#include "tm.h"
|
#include "tm.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue