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]

[commit] mn10300: Invoke OSABI specific initializations


I've just committed the patch below.  It allows the recently committed
code in mn10300-linux-tdep.c to be actually used.

	* mn10300-tdep.c (osabi.h): Include.
	(mn10300_gdbarch_init): Invoke gdbarch_init_osabi().
	* Makefile.in (mn10300-tdep.o): Update dependencies.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.748
diff -u -p -r1.748 Makefile.in
--- Makefile.in	2 Sep 2005 22:53:33 -0000	1.748
+++ Makefile.in	2 Sep 2005 23:39:51 -0000
@@ -2310,7 +2310,8 @@ mn10300-linux-tdep.o: mn10300-linux-tdep
 mn10300-tdep.o: mn10300-tdep.c $(defs_h) $(arch_utils_h) $(dis_asm_h) \
 	$(gdbtypes_h) $(regcache_h) $(gdb_string_h) $(gdb_assert_h) \
 	$(frame_h) $(frame_unwind_h) $(frame_base_h) $(trad_frame_h) \
-	$(symtab_h) $(dwarf2_frame_h) $(regcache_h) $(mn10300_tdep_h)
+	$(symtab_h) $(dwarf2_frame_h) $(regcache_h) $(osabi_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: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.123
diff -u -p -r1.123 mn10300-tdep.c
--- mn10300-tdep.c	28 Jun 2005 00:17:50 -0000	1.123
+++ mn10300-tdep.c	2 Sep 2005 23:39:52 -0000
@@ -37,6 +37,7 @@
 #include "symtab.h"
 #include "dwarf2-frame.h"
 #include "regcache.h"
+#include "osabi.h"
 
 #include "mn10300-tdep.h"
 
@@ -1003,6 +1004,9 @@ mn10300_gdbarch_init (struct gdbarch_inf
 
   mn10300_frame_unwind_init (gdbarch);
 
+  /* Hook in ABI-specific overrides, if they have been registered.  */
+  gdbarch_init_osabi (info, gdbarch);
+
   return gdbarch;
 }
  


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