PATCH: Fix "bfd/.." includes in rs6000-tdep.c

Daniel Jacobowitz drow@mvista.com
Sun Mar 31 22:01:00 GMT 2002


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"
 



More information about the Gdb-patches mailing list