aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-01-21 18:27:32 +0000
committerDoug Evans <dje@google.com>2010-01-21 18:27:32 +0000
commit3743bb4fbf22f982f311bba3dd5f1cb5a3dbcf44 (patch)
tree9286df3d8fea8d15a9c4d145f2694d45807fb95c /gdb/gdbserver
parent706e82051451cdabe57366cfd91fdca894d193a3 (diff)
downloadgdb-3743bb4fbf22f982f311bba3dd5f1cb5a3dbcf44.zip
gdb-3743bb4fbf22f982f311bba3dd5f1cb5a3dbcf44.tar.gz
gdb-3743bb4fbf22f982f311bba3dd5f1cb5a3dbcf44.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-arm-low.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0d2b378..078de3c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c
index 965b029..e0afd3a 100644
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdb/gdbserver/linux-arm-low.c
@@ -20,11 +20,13 @@
#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);