summaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-10-13 21:45:40 +0100
committerPedro Alves <palves@redhat.com>2014-10-13 23:06:05 +0100
commit58da9bdea03d5b96943696b6c7e69bef6ef419cc (patch)
treeffbc1dd1152339a9f1289e36f66de3929023d9c6 /gdb/linux-nat.c
parentfabd3880c70c46c1511e2b778b002fa64e521852 (diff)
downloadbinutils-gdb-palves/cxx-conversion-attempt.tar.gz
Make GDB build with both g++ and gcc, on x86_64 Fedora 20palves/cxx-conversion-attempt
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index d9aa48867e1..5d8e0e144cc 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -42,7 +42,17 @@
#include "inf-ptrace.h"
#include "auxv.h"
#include <sys/procfs.h> /* for elf_gregset etc. */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "elf-bfd.h" /* for elfcore_write_* */
+
+#ifdef __cplusplus
+}
+#endif
+
#include "gregset.h" /* for gregset */
#include "gdbcore.h" /* for get_exec_file */
#include <ctype.h> /* for isdigit */