From: drow Date: Tue, 20 Feb 2007 12:45:04 +0000 (+0000) Subject: gdb/ X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f2fbbc444d6e342c414c3fc7d37b527947fc1689;p=pf3gnuchains%2Fsourceware.git gdb/ * 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. sim/v850/ * Makefile.in (interp.o): Uncomment and update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9a3c42b6a9..af9ccbe069 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2007-02-20 Daniel Jacobowitz + + * 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-16 Daniel Jacobowitz * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c, diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index 3ee80cf950..34e5780956 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -256,7 +256,8 @@ the native maintainer when resolving ABI issues. 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 issues. 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 diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9f59b535fb..54b3dc606e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2642,7 +2642,7 @@ solib.o: solib.c $(defs_h) $(gdb_string_h) $(symtab_h) $(bfd_h) $(symfile_h) \ $(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) diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c index 386fe709bb..baaa4fa225 100644 --- a/gdb/mt-tdep.c +++ b/gdb/mt-tdep.c @@ -1118,9 +1118,9 @@ mt_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 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); diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index a4dc07c9ec..5d2c9a12fc 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -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" diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 00ebd6c137..45ae09b785 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -776,7 +776,7 @@ xtensa_regset_from_core_section (struct gdbarch *core_arch, { 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 *next_frame, 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_info *next_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 *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 *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)); } } diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index 07f781d2ef..4214046f91 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,7 @@ +2007-02-20 Daniel Jacobowitz + + * Makefile.in (interp.o): Uncomment and update. + 2006-12-21 Hans-Peter Nilsson * acconfig.h: Remove. diff --git a/sim/v850/Makefile.in b/sim/v850/Makefile.in index aeed0db931..e1a181f582 100644 --- a/sim/v850/Makefile.in +++ b/sim/v850/Makefile.in @@ -123,7 +123,6 @@ tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen 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)