This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: Fix "bfd/.." includes in rs6000-tdep.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 1 Apr 2002 01:01:09 -0500
- Subject: PATCH: Fix "bfd/.." includes in rs6000-tdep.c
The canonical way to include BFD headers is with "file.h", not "bfd/file.h".
The only reason the latter works is because of -I${srcdir}/../readline/..,
which is there so that <readline/readline.h> will work correctly. If you're
using a system readline, and have changed that to point at /usr/include...
well, you need this to build.
Committed as obvious, trunk and branch. Checked by building on
PowerPC/Linux.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
Needed to build on PowerPC without system readline. Committed upstream.
2002-04-01 Daniel Jacobowitz <drow@mvista.com>
* rs6000-tdep.c: Change #include of "bfd/libcoff.h"
and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
--- gdb-5.2.cvs20020401/gdb/rs6000-tdep.c.orig Mon Apr 1 00:55:18 2002
+++ gdb-5.2.cvs20020401/gdb/rs6000-tdep.c Mon Apr 1 00:55:31 2002
@@ -35,9 +35,9 @@
#include "value.h"
#include "parser-defs.h"
-#include "bfd/libbfd.h" /* for bfd_default_set_arch_mach */
+#include "libbfd.h" /* for bfd_default_set_arch_mach */
#include "coff/internal.h" /* for libcoff.h */
-#include "bfd/libcoff.h" /* for xcoff_data */
+#include "libcoff.h" /* for xcoff_data */
#include "elf-bfd.h"