This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix --enable-targets=all build


Without this I can't build --enable-targets=all due to
target_read_memory calls in those files.

OK?

-- 
Pedro Alves
2008-04-07  Pedro Alves  <pedro@codesourcery.com>

	* alphanbsd-tdep.c: Include "target.h".
	* mn10300-tdep.c: Include "target.h".
	* Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.

---
 gdb/Makefile.in      |    4 ++--
 gdb/alphanbsd-tdep.c |    1 +
 gdb/mn10300-tdep.c   |    1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

Index: src/gdb/Makefile.in
===================================================================
--- src.orig/gdb/Makefile.in	2008-04-05 16:17:42.000000000 +0100
+++ src/gdb/Makefile.in	2008-04-05 16:22:04.000000000 +0100
@@ -1836,7 +1836,7 @@ alpha-nat.o: alpha-nat.c $(defs_h) $(gdb
 alphanbsd-tdep.o: alphanbsd-tdep.c $(defs_h) $(frame_h) $(gdbcore_h) \
 	$(regcache_h) $(regset_h) $(value_h) $(osabi_h) $(gdb_string_h) \
 	$(gdb_assert_h) $(alpha_tdep_h) $(alphabsd_tdep_h) $(nbsd_tdep_h) \
-	$(solib_svr4_h)
+	$(solib_svr4_h) $(target_h)
 alphaobsd-tdep.o: alphaobsd-tdep.c $(defs_h) $(frame_h) $(gdbcore_h) \
 	$(osabi_h) $(obsd_tdep_h) $(alpha_tdep_h) $(alphabsd_tdep_h) \
 	$(solib_svr4_h)
@@ -2507,7 +2507,7 @@ mn10300-tdep.o: mn10300-tdep.c $(defs_h)
 	$(gdbtypes_h) $(regcache_h) $(gdb_string_h) $(gdb_assert_h) \
 	$(gdbcore_h) $(value_h) $(gdbtypes_h) \
 	$(frame_h) $(frame_unwind_h) $(frame_base_h) $(trad_frame_h) \
-	$(symtab_h) $(dwarf2_frame_h) $(osabi_h) $(mn10300_tdep_h)
+	$(symtab_h) $(dwarf2_frame_h) $(osabi_h) $(target_h) $(mn10300_tdep_h)
 monitor.o: monitor.c $(defs_h) $(gdbcore_h) $(target_h) $(exceptions_h) \
 	$(gdb_string_h) $(command_h) $(serial_h) $(monitor_h) $(gdbcmd_h) \
 	$(inferior_h) $(gdb_regex_h) $(srec_h) $(regcache_h)
Index: src/gdb/alphanbsd-tdep.c
===================================================================
--- src.orig/gdb/alphanbsd-tdep.c	2008-04-05 16:17:42.000000000 +0100
+++ src/gdb/alphanbsd-tdep.c	2008-04-05 16:22:04.000000000 +0100
@@ -35,6 +35,7 @@
 #include "alphabsd-tdep.h"
 #include "nbsd-tdep.h"
 #include "solib-svr4.h"
+#include "target.h"
 
 /* Core file support.  */
 
Index: src/gdb/mn10300-tdep.c
===================================================================
--- src.orig/gdb/mn10300-tdep.c	2008-04-05 16:17:42.000000000 +0100
+++ src/gdb/mn10300-tdep.c	2008-04-05 16:22:04.000000000 +0100
@@ -36,6 +36,7 @@
 #include "dwarf2-frame.h"
 #include "osabi.h"
 #include "infcall.h"
+#include "target.h"
 
 #include "mn10300-tdep.h"
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]