gdb/
[external/binutils.git] / gdb / ChangeLog
index 0919016..9bbce45 100644 (file)
@@ -1,3 +1,501 @@
+2013-07-18  Yao Qi  <yao@codesourcery.com>
+
+       * coffread.c (coff_symfile_read): Iterate over minimal symbols,
+       if the name is prefixed by "__imp_" or "_imp_", look for minimal
+       symbol without prefix.  If found, set its type to
+       'mst_solib_trampoline'.
+
+2013-07-17  Doug Evans  <dje@google.com>
+
+       * NEWS: Mention "set print raw frame-arguments".
+       * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
+       * stack.c (print_raw_frame_arguments): New static global.
+       (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
+       (_initialize_stack): New command "set/show print raw frame-arguments".
+       * valprint.c (setprintrawlist, showprintrawlist): New globals.
+       (set_print_raw, show_print_raw): New functions.
+       (_initialize_valprint): New prefix command "set/show print raw".
+       * valprint.h (value_print_options): Improve comments.
+
+       * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
+       of all *list variables.
+
+       * gdbcmd.h (togglelist): Delete.
+       * cli/cli-cmds.c (togglelist): Delete.
+       (init_cmd_lists): Update.
+       * cli/cli-cmds.h (togglelist): Delete.
+
+2013-07-17  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_per_objfile_free): Clear
+       dwarf2_per_objfile.
+
+2013-07-16  Doug Evans  <dje@google.com>
+
+       * nto-tdep.c (nto_relocate_section_addresses): Update,
+       target_section.bfd deleted.
+       * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
+       * s390-tdep.c (s390_load): Ditto.
+       * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
+
+2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
+
+       * common/format.c (parse_format_string): Add checks for NULL
+       character before calling strchr.
+
+2013-07-16  Doug Evans  <dje@google.com>
+
+       * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
+       temp_pathname argument.
+       * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
+       when opening the file fails.
+
+       * target.h (struct target_section): Delete member bfd.
+       All users updated to use the_bfd_section->owner instead.
+       * exec.c (add_to_section_table): Assert bfd is expected value.
+       Remove initialization of target_section.bfd.
+       (remove_target_sections): Update.
+       (section_table_available_memory): Update.
+       (section_table_xfer_memory_partial): Update.
+       (print_section_info): Update.
+       (exec_set_section_address): Update.
+       * record-full.c (record_full_core_xfer_partial): Update.
+       * solib-svr4.c (svr4_relocate_section_addresses): Update.
+       * solib-target.c (solib_target_relocate_section_addresses): Update.
+       * symfile.c (build_section_addr_info_from_section_table): Update.
+       * target.c (memory_xfer_live_readonly_partial): Update.
+       (memory_xfer_partial_1): Update.
+
+2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
+
+       * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
+       now available for embedded (BookE) and server (BookS) processors,
+       correct mentions of 'booke' and adjust comments accordingly in order to
+       avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
+       (have_ptrace_booke_interface): Rename function and variable
+       'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
+       Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
+       (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
+       'hwdebug_point_cmp'. Update all uses.
+       (booke_find_thread_points_by_tid): Rename function
+       'booke_find_thread_points_by_tid' to
+       'hwdebug_find_thread_points_by_tid'. Update all uses.
+       (booke_insert_point): Rename function 'booke_insert_point' to
+       'hwdebug_insert_point'. Update all uses.
+       (booke_remove_point): Rename function 'booke_remove_point' to
+       'hwdebug_remove_point'. Update all uses.
+
+2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
+       numbers with enum values.
+
+2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
+
+       PR threads/13217
+       * thread.c (thread_apply_all_command): Check for valid threads
+       and thread count.
+       (thread_array_cleanup): New struct.
+       (set_thread_refcount): New function.
+
+2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
+
+       * infcmd.c (default_print_one_register_info): Reuse function
+       print_hex_chars.
+
+2013-07-10  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
+       (ada-exp.o): New target.
+
+2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * mt-tdep.c (mt_registers_info): Call
+       get_no_prettyformat_print_options instead of
+       get_raw_print_options (regression by last patch from Doug
+       Evans).
+
+2013-07-09  Pedro Alves  <palves@redhat.com>
+
+       Checked in by Joel Brobecker  <brobecker@adacore.com>.
+       * ada-lang.c (coerce_unspec_val_to_type): Use
+       value_optimized_out_const.
+       * value.c (value_optimized_out_const): New function.
+       * value.h (value_optimized_out_const): New declaration.
+
+2013-07-09  Doug Evans  <dje@google.com>
+
+       * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
+       Enum values rename as well.  All uses updated.
+       * valprint.h (value_print_options): Rename member pretty to
+       pretty format.  Rename member prettyprint_arrays to
+       prettyformat_arrays.  Rename member prettyprint_structs to
+       prettyformat_structs.  All uses updated.
+       (get_no_prettyformat_print_options): Renamed from
+       get_raw_print_options.
+       * valprint.c (get_no_prettyformat_print_options): Renamed from
+       get_raw_print_options.  All callers updated.
+       (show_prettyformat_structs): Renamed from show_prettyprint_structs.
+       All callers updated.
+       (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
+       All callers updated.
+       (_initialize_valprint): Improve help text for "set print pretty" and
+       "set print arrays".
+
+2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
+
+       * value.c (value_bits_valid): Revert previous change, and change
+       by Pedro on 2013-07-04, due to regressions in
+       gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
+
+2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
+            Pedro Alves  <palves@redhat.com>
+
+       * value.c (value_bits_valid): If the value is not lval_computed
+       or has no check validity handler then the answer is the
+       optimized_out flag, otherwise defer to the handler.
+
+2013-07-06  Eli Zaretskii  <eliz@gnu.org>
+
+       * top.c (print_gdb_configuration): Explain in output of
+       --configuration what does "relocatable" mean.
+
+       * main.c (print_gdb_help): Regroup options in the --help text.
+       See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
+       the relevant discussions.
+
+2013-07-06  Yao Qi  <yao@codesourcery.com>
+
+       * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
+       Remove parameter 'lsal'.
+       * breakpoint.c (create_breakpoint): Move local variable 'lsal'
+       to inner block.  Caller update.
+       (base_breakpoint_create_breakpoints_sal): Update.
+       (bkpt_create_breakpoints_sal): Likewise.
+       (tracepoint_create_breakpoints_sal): Likewise.
+       (strace_marker_create_breakpoints_sal): Get 'lsal' from the
+       element 0 of vector 'canonical->sals'.
+
+2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
+
+       * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
+       register number instead of the pseudo register one.
+       (rs6000_dwarf2_reg_to_regnum): Likewise.
+
+2013-07-04  Pedro Alves  <palves@redhat.com>
+
+       * findvar.c (value_of_register): Use allocate_optimized_out_value
+       if the register has been optimized out, instead of
+       set_value_optimized_out.
+       * frame-unwind.c (frame_unwind_got_optimized): Use
+       allocate_optimized_out_value.
+
+2013-07-04  Pedro Alves  <palves@redhat.com>
+
+       * value.c (value_bits_valid): If the value is not lval_computed,
+       or doesn't have a check_validity hook, assume the value is entirely
+       valid.
+
+2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
+
+       * stack.c (read_frame_arg): No longer fetch lazy values.
+       * value.c (value_optimized_out): If the value is not already
+       marked optimized out, and is lazy then fetch it.
+       (value_primitive_field): Move optimized out check to later in the
+       function, after we have loaded any lazy values.
+       (value_fetch_lazy): Use optimized out flag directly rather than
+       calling optimized_out method.
+
+2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
+
+       * valops.c: Don't include "user-regs.h".
+       (value_fetch_lazy): Moved to value.c.
+       * value.c: Include "user-regs.h".
+       (value_fetch_lazy): Moved from valops.c.
+
+2013-07-04  Yao Qi  <yao@codesourcery.com>
+
+       Revert:
+       2013-06-27  Yao Qi  <yao@codesourcery.com>
+
+       * common/create-version.sh: Update comments.  Handle the case
+       that TARGET_ALIAS is empty.
+
+2013-07-03  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (config.status): Depend on development.sh.
+       (aclocal_m4_deps): Add libmcheck.m4.
+       * acinclude.m4: Include libmcheck.m4.
+       * configure.ac: Source development.sh instead of setting
+       'development' here.  --enable-libmcheck/--disable-libmcheck code
+       factored out to GDB_AC_LIBMCHECK.  Run it.
+       * development.sh: New file.
+       * libmcheck.m4: New file.
+       * configure: Regenerate.
+
+2013-07-02  Tom Tromey  <tromey@redhat.com>
+
+       * contrib/ari/update-web-ari.sh: Update for version.in change.
+
+2013-07-02  Tom Tromey  <tromey@redhat.com>
+
+       * common/ptid.h: Comment fixes.
+
+2013-07-01  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
+       .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
+       (dwarf2_read_index, create_all_comp_units): Update.
+
+2013-07-01  Tom Tromey  <tromey@redhat.com>
+
+       * configure.ac (build_warnings): Add -Wold-style-definition.
+       * configure: Rebuild.
+       * machoread.c (_initialize_machoread): Use "(void)".
+       * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
+       use "(void)".
+
+2013-07-01  Tom Tromey  <tromey@redhat.com>
+
+       * configure.ac (build_warnings): Add -Wold-style-declaration.
+       * configure: Rebuild.
+       * dsrec.c (make_srec): Use "static const", not "const static".
+       * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
+       not "const static".
+       * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
+       Use "static const", not "const static".
+       * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
+       not "const static".
+       * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
+       not "const static".
+       * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
+       not "const static".
+       * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
+       not "const static".
+       (v850_dbtrap_breakpoint_from_pc): Likewise.
+       * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
+       not "const static".
+
+2013-07-01  Tom Tromey  <tromey@redhat.com>
+
+       * configure.ac (build_warnings): Add -Wmissing-parameter-type.
+       * configure: Rebuild.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * defs.h: Include "pathmax.h".
+       * utils.c: Don't include sys/param.h.
+       (gdb_realpath): Remove code that checks for MAXPATHLEN.
+       * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
+       instead of MAXPATHLEN.
+       * solib-sunos.c: Don't include sys/param.h.
+       * xcoffread.c: Don't include sys/param.h.
+       * bsd-kvm.c: Don't include sys/param.h.
+       * darwin-nat.c: Don't include sys/param.h.
+       (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
+       * darwin-nat-info.c: Don't include sys/param.h.
+       * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
+       MAXPATHLEN.
+       * i386obsd-nat.c: Don't include sys/param.h.
+       * inf-child.c: Don't include sys/param.h.
+       (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
+       * linux-fork.c: Don't include sys/param.h.
+       (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
+       * linux-nat.c: Don't include sys/param.h.
+       (linux_child_pid_to_exec_file, linux_proc_pending_signals)
+       (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
+       * m68klinux-nat.c: Don't include sys/param.h.
+       * nbsd-nat.c: Don't include sys/param.h.
+       (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
+       * ppc-linux-nat.c: Don't include sys/param.h.
+       * rs6000-nat.c: Don't include sys/param.h.
+       * spu-linux-nat.c. Don't include sys/param.h.
+       * windows-nat.c: Don't include sys/param.h.
+       * xtensa-linux-nat.c: Don't include sys/param.h.
+       * config/i386/nm-fbsd.h: Don't include sys/param.h.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
+       * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
+       * gnulib/aclocal.m4: Regenerate.
+       * gnulib/config.in: Regenerate.
+       * gnulib/configure: Regenerate.
+       * gnulib/import/pathmax.h: New file.
+       * gnulib/import/Makefile.am: Regenerate.
+       * gnulib/import/Makefile.in: Regenerate.
+       * gnulib/import/m4/gnulib-cache.m4: Regenerate.
+       * gnulib/import/m4/gnulib-comp.m4: Regenerate.
+       * gnulib/import/m4/pathmax.m4: New file.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac (GDBINIT): Define, depending on host.
+       * go32-nat.c (init_go32_ops): Don't override gdbinit here.
+       * top.c (PATH_MAX): Delete fallback definition.
+       (GDBINIT_FILENAME): Delete.
+       (gdbinit): Reimplement as const char array set to the GDBINIT
+       string constant.
+       * top.h (gdbinit): Make const.
+       * configure, config.in: Regenerate.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-cmds.c (source_script): Make 'file' parameter const.
+       * cli/cli-cmds.h (source_script): Likewise.
+       * exceptions.c (catch_command_errors_const): New function.
+       * exceptions.h (catch_command_errors_const): Declare.
+       * main.c (get_init_files): Make parameters const, and adjust.
+       (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
+       'local_gdbinit' locals const.  Adjust to use
+       catch_command_errors_const.
+       (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
+       'local_gdbinit' locals const.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
+       (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
+       * tracepoint.c: Don't check HAVE_UNISTD_H before including
+       <unistd.h>.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       Import the "unistd" gnulib module.
+       * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
+       * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
+       import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
+       import/m4/unistd_h.m4.
+       * gnulib/aclocal.m4: Renenerate.
+       * gnulib/config.in: Renenerate.
+       * gnulib/configure: Renenerate.
+       * gnulib/import/Makefile.am: Renenerate.
+       * gnulib/import/Makefile.in: Renenerate.
+       * gnulib/import/m4/gnulib-cache.m4: Renenerate.
+       * gnulib/import/m4/gnulib-comp.m4: Renenerate.
+       * gnulib/import/m4/off_t.m4: New file.
+       * gnulib/import/m4/ssize_t.m4: New file.
+       * gnulib/import/m4/sys_types_h.m4: New file.
+       * gnulib/import/m4/unistd_h.m4: New file.
+       * gnulib/import/sys_types.in.h: New file.
+       * gnulib/import/unistd.c: New file.
+       * gnulib/import/unistd.in.h: New file.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
+       defined instead of checking HAVE_UNISTD_H.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       Reimport gnulib from scratch.
+       * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
+       import/m4/onceonly.m4.
+       * gnulib/aclocal.m4: Renegerate.
+       * gnulib/config.in: Renegerate.
+       * gnulib/configure: Renegerate.
+       * gnulib/import/Makefile.in: Renegerate.
+       * gnulib/import/extra/update-copyright: Renegerate.
+       * gnulib/import/m4/onceonly.m4: Delete.
+
+2013-07-01  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-regs.c (pagination_enabled): Delete declaration.
+
+2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * remote.c (async_remote_interrupt_twice): Make it static.
+       * remote.h (async_remote_interrupt_twice): Remove the declaration.
+
+2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * ia64-linux-tdep.c: Include <ctype.h>.
+       (ia64_linux_stap_is_single_operand): New function.
+       (ia64_linux_init_abi): Initialize SystemTap related attributes.
+
+2013-06-28  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (version.c): Use version.in, not
+       common/version.in.
+       * common/create-version.sh: Likewise.
+       * common/version.in: Move...
+       * version.in: ...here.
+
+2013-06-28  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (set_observer_mode): Don't declare pagination_enabled
+       here.
+       * utils.h (pagination_enabled): Declare.
+
+2013-06-28  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
+       Move higher up in file.
+
+2013-06-28  Tom Tromey  <tromey@redhat.com>
+
+       * tracepoint.c (deprecated_readline_begin_hook)
+       (deprecated_readline_hook, deprecated_readline_end_hook): Don't
+       declare.
+
+2013-06-28  Pedro Alves  <palves@redhat.com>
+
+       PR tui/14880
+       * tui/tui-regs.c (tui_get_register): Fetch value contents before
+       checking if they're available.
+       * value.c (value_available_contents_eq): Change comment.
+       * value.h (value_available_contents_eq): Expand comment.
+
+2013-06-27  Tom Tromey  <tromey@redhat.com>
+
+       * target.c (find_run_target): Remove.
+       * target.h (find_run_target): Remove.
+
+2013-06-27  Tom Tromey  <tromey@redhat.com>
+
+       * corelow.c (core_gdbarch): Now static.
+
+2013-06-27  Tom Tromey  <tromey@redhat.com>
+
+       * target.c (target_struct_index): Remove.
+
+2013-06-27  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c: Remove comment describing the 'stepping over runtime
+       loader dynamic symbol resolution code' mechanism; moved to
+       gdbint.texinfo.
+
+2013-06-27  Pedro Alves  <palves@redhat.com>
+
+       * exceptions.c (catch_command_errors): Remove spurious space.
+       * exceptions.h (catch_command_errors): Second parameter is "arg",
+       not "command".
+
+2013-06-27  Yao Qi  <yao@codesourcery.com>
+
+       * common/create-version.sh: Update comments.  Handle the case
+       that TARGET_ALIAS is empty.
+
+2013-06-26  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
+       comment.
+
+2013-06-26  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c: Update comments on stepping over runtime loader
+       dynamic symbol resolution code.
+
+2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * ax-gdb.h (union exp_element): Forward declare.
+       * parser-defs.h: Include expression.h.
+
+2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
+
 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
 
        * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.