* linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
authorDoug Evans <dje@google.com>
Thu, 21 Jan 2010 18:27:32 +0000 (18:27 +0000)
committerDoug Evans <dje@google.com>
Thu, 21 Jan 2010 18:27:32 +0000 (18:27 +0000)
Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c

index 0d2b3786c31c2323914528ce67dd5b31e35bb6aa..078de3cb20897e89cdd1148c0d3670f1f8bcfd71 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-21  Doug Evans  <dje@google.com>
+
+       * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
+       Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
+
 2010-01-21  Pedro Alves  <pedro@codesourcery.com>
 
        * proc-service.c (ps_lgetregs): Don't refetch registers from the
index 965b02926eb610e0429fd7cd007fadeaaeb260c8..e0afd3a6ce9800ef5f100288981c2a9ec3a0ce15 100644 (file)
 #include "server.h"
 #include "linux-low.h"
 
+/* Don't include elf.h if linux/elf.h got included by gdb_proc_service.h.
+   On Bionic elf.h and linux/elf.h have conflicting definitions.  */
+#ifndef ELFMAG0
 #include <elf.h>
+#endif
 #include <sys/ptrace.h>
 
-#include "gdb_proc_service.h"
-
 /* Defined in auto-generated files.  */
 void init_registers_arm (void);
 void init_registers_arm_with_iwmmxt (void);