2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
[binutils-gdb.git] / gdb / ChangeLog
index d728e9f3605ef385b359f83f80167af744c8271e..be6eab8d00e8ba148d58eeee675c9a26daf25e2e 100644 (file)
@@ -1,3 +1,266 @@
+2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
+           Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * c-lang.c (c_create_fundamental_type): Create fundamental
+       types for DFP.
+       * c-typeprint.c (c_type_print_varspec_prefix): Add
+       TYPE_CODE_DECFLOAT to no prefix needed case.
+       (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
+       suffix needed case.
+       * c-valprint.c (c_val_print): Call print_decimal_floating to
+       print DFP values.
+       * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
+       attribute code and return TYPE_CODE_DECFLOAT.
+       (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
+       * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
+       builtin_decdouble and builtin_declong. 
+       * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
+       type code for DFP.
+       (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
+       types, for decimal floating point.
+       (FT_NUM_MEMBERS):  Increment, new types added.
+       (struct builtin_type): Add builtin_decfloat, builtin_decdouble
+       and builtin_declong.
+       * valprint.c (print_decimal_floating): New function to print DFP
+       values.
+       * value.h (print_decimal_floating): Prototype.
+
+2007-10-25  Wu Zhou  <woodzltc@cn.ibm.com> 
+           Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
+       LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
+       (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
+       (INSTALLED_LIBS): Add -ldecnumber in.
+       (CLIBS): Add LIBDECNUMBER in.
+       (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
+       headers.
+       (dfp_h): New macros for decimal floating point.
+       (dfp.o): New target.
+       (COMMON_OBS): Add dfp.o in.
+       (c-exp.o): Add dfp_h as dependency.
+       (valprint.o): Add dfp_h as dependency.
+       (value.o): Add dfp_h as dependency.
+       * dfp.h: New header file for decimal floating point support in
+       GDB.
+       * dfp.c: New source file for decimal floating point support in
+       GDB.  Implement decimal_from_string and decimal_to_string based
+       on libdecnumber API.
+       * configure.ac: Add AC_C_BIGENDIAN test.
+       * config.in, configure: Regenerate.
+
+2007-10-25  David Ung  <davidu@mips.com>
+            Maciej W. Rozycki  <macro@mips.com>
+
+       PR exp/1926
+       * infcmd.c (registers_info): Check for a user register before
+       calling target's gdbarch_print_registers_info().  If found to be
+       so, extract the implicit value of user register and call
+       print_scalar_formatted().
+       * Makefile.in: (infcmd.o): Add $(user_regs_h).
+
+2007-10-25  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Document status of hppa64-hpux support.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
+       set_solib_ops to install SVR4 operations.
+       (_initialize_svr4_solib): Do not set current_target_so_ops.
+
+       * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
+       * config/i386/i386gnu.mt (TDEPFILES): ... to here.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
+       (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
+       * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
+       * solib-legacy.c: Remove file.
+
+       * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
+       * config/arm/linux.mt (TDEPFILES): Likewise.
+       * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
+       * config/ia64/linux.mt (TDEPFILES): Likewise.
+       * config/m32r/linux.mt (TDEPFILES): Likewise.
+       * config/powerpc/linux.mt (TDEPFILES): Likewise.
+       * config/s390/s390.mt (TDEPFILES): Likewise.
+
+       * alpha-linux-tdep.c (alpha_linux_init_abi): Call
+       set_solib_svr4_fetch_link_map_offsets.
+       * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
+       * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
+
+       * i386gnu-tdep.c: Include "solib-svr4.h".
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * i386-nto-tdep.c: Include "solib.h".
+       (i386nto_init_abi): Use set_solib_ops instead of overwriting
+       current_target_so_ops members.
+       * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
+       (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
+       (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
+       (arm_wince_init_abi): Call set_solib_ops.
+       * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
+       (i386_cygwin_init_abi): Call set_solib_ops.
+       * solib-target.c: Include "solib-target.h".
+       (solib_target_so_ops): Make global.
+       (_initialize_solib_target): Do not set current_target_so_ops.
+       * solib-target.h: New file.
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
+       (mips_irix_init_abi): Call set_solib_ops.
+       * solib-irix.c: Include "solib.h" and "solib-irix.h".
+       (irix_so_ops): Make global.
+       (_initialize_irix_solib): Do not set current_target_so_ops.
+       * solib-irix.h: New file.
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * configure.tgt: Remove hppa*64*-*-hpux11* special case.
+       * config/pa/hppa64.mt: Delete file.
+       * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
+       (TDEPFILES): Move somread.o to ...
+       * config/pa/hpux.mh (NATDEPFILES): ... here.
+
+       * configure.ac: Add check for elf_hp.h header.
+       Search libdl and libxpdl for dlgetmodinfo.
+       * config.in, configure: Regenerate.
+       * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
+       instead of #ifndef PA_SOM_ONLY.  Include "solib.h".
+       (pa64_solib_select): Take gdbarch instead of tdep argument.  Call
+       set_solib_ops instead of modifying current_target_so_ops.
+       * solib-pa64.h (pa64_solib_select): Update prototype.
+       * solib-som.c: Remove include of "som.h".  Include "solib.h".
+       (som_solib_select): Take gdbarch instead of tdep argument.  Call
+       set_solib_ops instead of modifying current_target_so_ops.
+       * solib-som.h (som_solib_select): Update prototype.
+       * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
+       of tdep to som_solib_select call.
+       (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
+       pa64_solib_select call.
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * frv-tdep.c: Include "solib.h".
+       (frv_gdbarch_init): Call set_solib_ops.
+       * frv-tdep.h (struct target_so_ops): Add forward reference.
+       (frv_so_ops): Add extern declaration.
+       * solib-frv.c (frv_so_ops): Make global.
+       (_initialize_frv_solib): Do not set current_target_so_ops.
+       * Makefile.in: Update dependencies.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib.c (solib_global_lookup): Use solib_ops instead of global
+       current_target_so_ops.
+
+2007-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
+       * config/frv-tm-frv.h: Delete file.
+
+2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * NEWS: Mention gdbserver support for non-libthread_db operation.
+
+2007-10-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * amd64-tdep.c (amd64_convert_register_p): Delete.
+       (amd64_init_abi): Use i387_convert_register_p.
+       * alpha-tdep.c (alpha_convert_register_p): Return zero for
+       eight byte types.
+       (alpha_register_to_value, alpha_value_to_register): Do not handle
+       eight byte types.
+       * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
+       * i387-tdep.c (i387_convert_register_p): New.
+       (i387_register_to_value, i387_value_to_register): Update comments.
+       * i387-tdep.h (i387_convert_register_p): Declare.
+       * ia64-tdep.c (ia64_convert_register_p): Return zero for
+       builtin_type_ia64_ext.
+       (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
+       (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
+       * m68k-tdep.c (m68k_convert_register_p): Return zero for
+       builtin_type_m68881_ext.
+       (m68k_register_to_value, m68k_value_to_register): Update comments.
+
+2007-10-24  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * target-memory.c (claim_memory): Propagate baton for split memory
+       requests.
+
+2007-10-24  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       PR gdb/2341
+       * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
+       alias warning bug.
+
+2007-10-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+       * symtab.c (find_line_symtab): scan through psymtabs
+       when exact_match is zero.
+
+2007-10-23  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
+
+       * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
+       (deal_with_atomic_sequence): New.
+       (mips_software_single_step): Use it.
+
+2007-10-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/2336
+       * configure.ac: Modify $LIBINTL before the BFD check.
+       * configure: Regenerated.
+
+2007-10-23  Joel Brobecker  <brobecker@adacore.com>
+
+       * buildsym.c (free_pending_blocks): Remove commented-out code.
+       (make_blockvector): Likewise. Re-use free_pending_blocks.
+       (end_symtab): Remove commented-out code.
+
+2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * top.c (command_loop): Fix output for shrinkage.
+
+2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
+       (exp): Remove and document function-like casts.
+
+2007-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * cp-support.c: Include "safe-ctype.h".
+       (cp_already_canonical): New function.
+       (cp_canonicalize_string): Use it.  Return NULL for already canonical
+       strings.
+       (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
+       (cp_func_name, remove_params): Likewise.
+       (cp_find_first_component_aux): Use ISSPACE.
+       * cp-support.h (cp_demangled_name_to_comp): Correct comment.  Remove
+       MEMORY_P argument.
+       * cp-name-parser.y (ALLOC_CHUNK): Define.
+       (struct demangle_info): Add PREV and NEXT.  Increase the size of
+       COMPS.
+       (d_grab): Convert to a function.
+       (allocate_info): Rewrite.
+       (cp_demangled_name_to_comp): Remove MEMORY argument.  Do not use
+       strlen.  Update call to allocate_info.  Do not free it on failure.
+       (main): Update calls to cp_demangled_name_to_comp.
+       * Makefile.in (cp-support.o): Update.
+
 2007-10-22  Markus Deuling  <deuling@de.ibm.com>
 
        * std-regs.c (value_of_builtin_frame_fp_reg)