diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2016-12-05 11:59:03 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2016-12-08 08:29:39 +0100 |
commit | 21389b7f3451a482e14fef9bd32257c4c87f4317 (patch) | |
tree | b192b3c783433da11a906f825aa6f8b3bc5afc35 /gdb/config | |
parent | 0947023d1d4b5d8803a1065d622f707010b2bcdc (diff) | |
download | fsf-binutils-gdb-21389b7f3451a482e14fef9bd32257c4c87f4317.zip fsf-binutils-gdb-21389b7f3451a482e14fef9bd32257c4c87f4317.tar.gz fsf-binutils-gdb-21389b7f3451a482e14fef9bd32257c4c87f4317.tar.bz2 |
Hurd, C++: Mach/Hurd headers and MIG stubs are not yet fit for C++
..., so handle these in "C" mode still:
gdb/
* config/i386/i386gnu.mh (%_S.o %_U.o): Add "-x c" to
"COMPILE.post".
* gnu-nat.c: #include Mach/Hurd headers before all others. Wrap
Mach/Hurd headers and MIG stubs' prototypes in 'extern "C"'.
* i386-gnu-nat.c: Likewise.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/i386gnu.mh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/config/i386/i386gnu.mh b/gdb/config/i386/i386gnu.mh index 24e817e..070497f 100644 --- a/gdb/config/i386/i386gnu.mh +++ b/gdb/config/i386/i386gnu.mh @@ -32,6 +32,9 @@ MIGCOM = $(MIG) -cc cat - /dev/null $(CPP) $(CPPFLAGS) $($*-MIGUFLAGS) -x c $< \ | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h +# MIG stubs are not yet ready for C++ compilation. +%_S.o %_U.o : COMPILE.post += -x c + NAT_GENERATED_FILES = notify_S.h notify_S.c \ process_reply_S.h process_reply_S.c \ msg_reply_S.h msg_reply_S.c msg_U.h msg_U.c \ |