This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch] PR16445 - fix build of binutils-gdb
- From: Pedro Alves <palves at redhat dot com>
- To: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- Cc: binutils at sourceware dot org
- Date: Fri, 17 Jan 2014 14:23:59 +0000
- Subject: Re: [Patch] PR16445 - fix build of binutils-gdb
- Authentication-results: sourceware.org; auth=none
- References: <20140117084701 dot GC7011 at physik dot fu-berlin dot de>
On 01/17/2014 08:47 AM, Tobias Burnus wrote:
>
> building the GIT version of binutils-gdb fails on RHEL 6 since a couple
> of days, using the current trunk build of GCC 4.9. It did work on January 10.
Hmm, what changed on January 10?
I guess what we need is something like linux-low.c and
linux-arm-low.c do?
Does this work for you?
---
gdb/gdbserver/linux-x86-low.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index 04fa3c9..e1daa7d 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -26,9 +26,14 @@
#include "i387-fp.h"
#include "i386-low.h"
#include "i386-xstate.h"
-#include "elf/common.h"
#include "gdb_proc_service.h"
+/* Don't include elf/common.h if linux/elf.h got included by
+ gdb_proc_service.h. */
+#ifndef ELFMAG0
+#include "elf/common.h"
+#endif
+
#include "agent.h"
#include "tdesc.h"
#include "tracepoint.h"
--
1.7.11.7