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]

gdb_mbuild.sh fixes


This lets every target in MAINTAINERS build again.

- CRIS has simulator warnings.  HP fixed a bunch of them, but some
  caused by cgen remain.  I disabled -Werror (just for the sim, not
  for GDB).

- sparc-elf hasn't linked in at least a year or two; it needs bits of
  64-bit BFD support that don't get included.  Since no one has fixed
  it, I gather no one cares, so let's test something else by default.
  sparc64-solaris2.10 is IMHO a much more sensible target.  If you'd
  rather test one of the BSD targets instead, feel free to update
  this.

- Mechanical changes missed for Morpho ms1 and for FRV.

- Parallel build failure in v850 sim.

- 64-bit host warnings in xtensa-tdep.c.

I've checked these in, after a successful gdb_mbuild.sh.

-- 
Daniel Jacobowitz
CodeSourcery

2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>

	* MAINTAINERS: Disable -Werror for cris simulator.  Build
	sparc64-solaris2.10 instead of the broken sparc-elf.
	* solib-frv.c: Include "solib.h".
	* Makefile.in (solib-frv.o): Update.
	* mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
	* xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
	(xtensa_frame_this_id, xtensa_frame_prev_register)
	(xtensa_push_dummy_call): Use %p.

2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.in (interp.o): Uncomment and update.

---
 gdb/MAINTAINERS      |    6 ++++--
 gdb/Makefile.in      |    2 +-
 gdb/mt-tdep.c        |    6 +++---
 gdb/solib-frv.c      |    1 +
 gdb/xtensa-tdep.c    |   22 +++++++++++-----------
 sim/v850/Makefile.in |    3 +--
 6 files changed, 21 insertions(+), 19 deletions(-)

Index: src/gdb/MAINTAINERS
===================================================================
--- src.orig/gdb/MAINTAINERS	2007-02-19 16:54:43.000000000 -0500
+++ src/gdb/MAINTAINERS	2007-02-19 17:27:15.000000000 -0500
@@ -256,7 +256,8 @@ the native maintainer when resolving ABI
 
 	avr		--target=avr ,-Werror
 
-	cris		--target=cris-elf ,-Werror
+	cris		--target=cris-elf ,-Werror ,
+			(sim does not build with -Werror)
 
 	d10v		OBSOLETE
 
@@ -308,7 +309,8 @@ the native maintainer when resolving ABI
 	sh		--target=sh-elf ,-Werror
 			--target=sh64-elf ,-Werror
 
-	sparc		--target=sparc-elf ,-Werror
+	sparc		--target=sparc64-solaris2.10 ,-Werror
+			(--target=sparc-elf broken)
 
 	spu		--target=spu-elf ,-Werror
 			Ulrich Weigand		uweigand@de.ibm.com
Index: src/gdb/Makefile.in
===================================================================
--- src.orig/gdb/Makefile.in	2007-02-19 17:01:34.000000000 -0500
+++ src/gdb/Makefile.in	2007-02-19 17:01:38.000000000 -0500
@@ -2642,7 +2642,7 @@ solib.o: solib.c $(defs_h) $(gdb_string_
 	$(observer_h) $(readline_h)
 solib-frv.o: solib-frv.c $(defs_h) $(gdb_string_h) $(inferior_h) \
 	$(gdbcore_h) $(solist_h) $(frv_tdep_h) $(objfiles_h) $(symtab_h) \
-	$(language_h) $(command_h) $(gdbcmd_h) $(elf_frv_h)
+	$(language_h) $(command_h) $(gdbcmd_h) $(elf_frv_h) $(solib_h)
 solib-irix.o: solib-irix.c $(defs_h) $(symtab_h) $(bfd_h) $(symfile_h) \
 	$(objfiles_h) $(gdbcore_h) $(target_h) $(inferior_h) $(solist_h)
 solib-legacy.o: solib-legacy.c $(defs_h) $(gdbcore_h) $(solib_svr4_h)
Index: src/gdb/mt-tdep.c
===================================================================
--- src.orig/gdb/mt-tdep.c	2007-02-19 16:54:05.000000000 -0500
+++ src/gdb/mt-tdep.c	2007-02-19 16:54:35.000000000 -0500
@@ -1117,9 +1117,9 @@ mt_gdbarch_init (struct gdbarch_info inf
      provided.  */
   gdbarch = gdbarch_alloc (&info, NULL);
 
-  set_gdbarch_float_format (gdbarch, floatformats_ieee_single_big);
-  set_gdbarch_double_format (gdbarch, floatformats_ieee_double_big);
-  set_gdbarch_long_double_format (gdbarch, floatformats_ieee_double_big);
+  set_gdbarch_float_format (gdbarch, floatformats_ieee_single);
+  set_gdbarch_double_format (gdbarch, floatformats_ieee_double);
+  set_gdbarch_long_double_format (gdbarch, floatformats_ieee_double);
 
   set_gdbarch_register_name (gdbarch, mt_register_name);
   set_gdbarch_num_regs (gdbarch, MT_NUM_REGS);
Index: src/gdb/solib-frv.c
===================================================================
--- src.orig/gdb/solib-frv.c	2007-02-19 17:01:24.000000000 -0500
+++ src/gdb/solib-frv.c	2007-02-19 17:01:29.000000000 -0500
@@ -23,6 +23,7 @@
 #include "gdb_string.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "solib.h"
 #include "solist.h"
 #include "frv-tdep.h"
 #include "objfiles.h"
Index: src/gdb/xtensa-tdep.c
===================================================================
--- src.orig/gdb/xtensa-tdep.c	2007-02-19 17:21:04.000000000 -0500
+++ src/gdb/xtensa-tdep.c	2007-02-19 17:23:32.000000000 -0500
@@ -776,7 +776,7 @@ xtensa_regset_from_core_section (struct 
 {
   DEBUGTRACE ("xtensa_regset_from_core_section "
 	      "(..., sect_name==\"%s\", sect_size==%x) \n",
-	      sect_name, sect_size);
+	      sect_name, (int) sect_size);
 
   if (strcmp (sect_name, ".reg") == 0
       && sect_size >= sizeof(xtensa_elf_gregset_t))
@@ -1001,8 +1001,8 @@ xtensa_frame_this_id (struct frame_info 
   struct xtensa_frame_cache *cache =
     xtensa_frame_cache (next_frame, this_cache);
 
-  DEBUGTRACE ("xtensa_frame_this_id (next 0x%08x, *this 0x%08x)\n",
-	      (unsigned int) next_frame, (unsigned int) *this_cache);
+  DEBUGTRACE ("xtensa_frame_this_id (next %p, *this %p)\n",
+	      next_frame, *this_cache);
 
   if (cache->prev_sp == 0)
     return;
@@ -1026,10 +1026,10 @@ xtensa_frame_prev_register (struct frame
   CORE_ADDR saved_reg = 0;
   int done = 1;
 
-  DEBUGTRACE ("xtensa_frame_prev_register (next 0x%08x, "
-	      "*this 0x%08x, regnum %d (%s), ...)\n",
-	      (unsigned int) next_frame,
-	      *this_cache? (unsigned int) *this_cache : 0, regnum,
+  DEBUGTRACE ("xtensa_frame_prev_register (next %p, "
+	      "*this %p, regnum %d (%s), ...)\n",
+	      next_frame,
+	      *this_cache ? *this_cache : 0, regnum,
 	      xtensa_register_name (regnum));
 
   if (regnum == WS_REGNUM)
@@ -1299,8 +1299,8 @@ xtensa_push_dummy_call (struct gdbarch *
         {
 	  struct value *arg = args[i];
 	  struct type *arg_type = check_typedef (value_type (arg));
-	  fprintf_unfiltered (gdb_stdlog, "%2d: 0x%08x %3d ",
-			      i, (int) arg, TYPE_LENGTH (arg_type));
+	  fprintf_unfiltered (gdb_stdlog, "%2d: %p %3d ",
+			      i, arg, TYPE_LENGTH (arg_type));
 	  switch (TYPE_CODE (arg_type))
 	    {
 	    case TYPE_CODE_INT:
@@ -1313,8 +1313,8 @@ xtensa_push_dummy_call (struct gdbarch *
 	      fprintf_unfiltered (gdb_stdlog, "%3d", TYPE_CODE (arg_type));
 	      break;
 	    }
-	  fprintf_unfiltered (gdb_stdlog, " 0x%08x\n",
-			      (unsigned int) value_contents (arg));
+	  fprintf_unfiltered (gdb_stdlog, " %p\n",
+			      value_contents (arg));
 	}
     }
 
Index: src/sim/v850/Makefile.in
===================================================================
--- src.orig/sim/v850/Makefile.in	2007-02-20 07:18:21.000000000 -0500
+++ src/sim/v850/Makefile.in	2007-02-20 07:23:02.000000000 -0500
@@ -123,7 +123,6 @@ tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../ige
 clean-extra: clean-igen
 	rm -f table.c simops.h gencode
 
-#interp.o: interp.c table.c $(INCLUDE)
+interp.o: interp.c $(INCLUDE)
 simops.o: simops.c simops.h $(INCLUDE) targ-vals.h
-#table.o: table.c
 semantics.o: $(INCLUDE)


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