gdb/
[external/binutils.git] / gdb / ChangeLog
index 7677154..4ccf1b2 100644 (file)
@@ -1,3 +1,244 @@
+2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * corefile.c (read_memory, read_stack, write_memory): Accept LEN
+       argument as ssize_t.
+       * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
+       * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
+       * target.c (target_read_stack, target_write_memory)
+       (target_write_raw_memory): Likewise.
+       * target.h (target_read_stack, target_write_memory)
+       (target_write_raw_memory): Likewise.
+
+2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * symfile-mem.c: Change gdb_static_assert to ssize_t.
+       (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
+       * target.c (target_read_memory): Change LEN to ssize_t.
+       * target.h (target_read_memory): Change LEN to ssize_t.
+
+2012-06-05  Pedro Alves  <palves@redhat.com>
+
+       PR backtrace/13866
+
+       * breakpoint.c (until_break_command): Only fetch the selected
+       frame after decode_line_1.
+
+2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
+
+       * solib-svr4.c (enable_break): Don't fallback to setting the solib
+       event breakpoint at _start, __start or main if a program
+       interpreter is not found.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
+       Add declaration.
+       * windows-tdep.c: #include "objfiles.h".
+       (windows_iterate_over_objfiles_in_search_order): New function.
+       * amd64-windows-tdep.c (amd64_windows_init_abi): Set
+       iterate_over_objfiles_in_search_order gdbarch method to
+       windows_iterate_over_objfiles_in_search_order.
+       * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbarch.sh: Add generation of
+       "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
+       gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
+       (iterate_over_objfiles_in_search_order): New gdbarch method.
+       * gdbarch.h, gdbarch.c: Regenerate.
+       * objfiles.h (default_iterate_over_objfiles_in_search_order):
+       Add declaration.
+       * objfiles.c (default_iterate_over_objfiles_in_search_order):
+       New function.
+       * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+       out of lookup_symbol_aux_symtabs.
+       (lookup_symbol_aux_symtabs): Replace extracted-out code by
+       call to lookup_symbol_aux_objfile.
+       (struct global_sym_lookup_data): New type.
+       (lookup_symbol_global_iterator_cb): New function.
+       (lookup_symbol_global): Search for symbol using
+       gdbarch_iterate_over_objfiles_in_search_order and
+       lookup_symbol_global_iterator_cb.
+       * findvar.c (struct minsym_lookup_data): New type.
+       (minsym_lookup_iterator_cb): New function.
+       (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
+       symbol's address via gdbarch_iterate_over_objfiles_in_search_order
+       and minsym_lookup_iterator_cb.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       Revert the following patch:
+       * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
+       try locating the symbol in the symbol's own objfile first, before
+       extending the search to all objfiles.
+       * symtab.c (lookup_symbol_aux_objfile): New function, extracted
+       out of lookup_symbol_aux_symtabs.
+       (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
+       Replace extracted-out code by call to lookup_symbol_aux_objfile.
+       Do not search EXCLUDE_OBJFILE.
+       (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
+       (lookup_symbol_global): Search for matches in the block's objfile
+       first, before searching all other objfiles.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.c (find_condition_and_thread): Stop parsing
+       as soon as the first invalid keyword is found.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * config/djgpp/djcheck.sh: Add copyright header.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (update_files, main): Fix path to update-copyright
+       script.
+
+2012-06-05  Joel Brobecker  <brobecker@adacore.com>
+
+       * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
+       (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
+       for which a reminder to update by hand is printed.
+
+2012-06-04  Doug Evans  <dje@google.com>
+
+       * buildsym.c (make_blockvector): Add comment.
+
+2012-06-04  Pedro Alves  <palves@redhat.com>
+
+       * arch-utils.c (default_gdb_signal_from_target): Delete.
+       * arch-utils.h (default_gdb_signal_from_target): Delete.
+       * corelow.c (core_open) <signal mapping>: Extended comment.  Check
+       gdbarch_gdb_signal_from_target_p.
+       * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
+       predicate).
+       * gdbarch.h: Regenerate.
+       * gdbarch.c: Regenerate.
+
+2012-06-04  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch.sh (gdb_signal_from_target): Mention that the
+       implementation of the method must be host independent.
+       * gdbarch.h: Regenerate.
+
+2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
+       parameters.
+       (target_read_memory_bfd): New function.
+       (symbol_file_add_from_memory): Use it.
+
+2012-06-03  Doug Evans  <dje@google.com>
+
+       * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
+       of primary symtab.
+       (basic_lookup_transparent_type): Ditto.
+
+       * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
+       (ALL_PRIMARY_SYMTABS): Use it.
+       (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
+       * dwarf2read.c (dw2_find_symbol_file): Ditto.
+       * linespec.c (iterate_over_all_matching_symtabs): Ditto.
+       * symtab.c (lookup_symbol_aux_objfile): Ditto.
+       (basic_lookup_transparent_type): Ditto.
+
+2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
+       it to optimize resolution of demangled name.
+
+2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * configure.ac (development): Define new variable.
+       Call AC_CHECK_LIB for mcheck if $development.
+       (ERROR_ON_WARNING): Enable it by default only if $development.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * target.c (target_read_memory): Make LEN argument as size_t.
+       * target.h (target_read_memory): Likewise.
+
+2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
+
+2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
+
+       * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
+       BookE interface for PowerPC server processors if not available
+       in the Linux Kernel.
+
+2012-05-31  Keith Seitz  <keiths@redhat.com>
+
+       * linespec.c (decode_objc): Add cleanup to free
+       INFO.FILE_SYMTABS.
+       (find_linespec_symbols): Add cleanup to free CLASSES.
+       * symfile.c (find_separate_debug_file_by_debuglink): Add
+       cleanup to free DEBUGLINK.
+       * ui-out.c (clear_header_list): No need to check if
+       HEADER_NEXT.COLHDR is NULL.
+       Free HEADER_NEXT.COL_NAME.
+
+2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
+
+       * ada-lang.c (standard_lookup): Prevent uninitialized variable
+       warning.
+
+2012-05-30  Jeff Kenton  <jkenton@tilera.com>
+
+       * configure.host (gdb_host_cpu): Handle tilegx*.
+       (gdb_host): Handle tilegx-*-linux*.
+       * tilegx-linux-nat.c: New file.
+       * config/tilegx/linux.mh: New file.
+
+2012-05-30  Jeff Kenton  <jkenton@tilera.com>
+
+       * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
+       tilegx-linux-tdep.o.
+       (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
+       tilegx-linux-tdep.c.
+       * configure.tgt: Handle tilegx-*-linux*.
+       * tilegx-tdep.h: New file.
+       * tilegx-tdep.c: New file.
+       * tilegx-linux-tdep.c: New file.
+       * regformats/reg-tilegx.dat: New file.
+
+2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
+
+       * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
+       accounting of hw watchpoints on ppc.
+
+2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
+
+       * source.c (openp): Expand tilde in path entries.
+
+2012-05-29  Doug Evans  <dje@google.com>
+
+       * buildsym.c (block_compar): Fix comment.
+       (end_symtab): Fix and clarify some comments.
+
+       * stabsread.h (cleanup_undefined_stabs_types): Renamed from
+       cleanup_undefined_types.
+       * stabsread.c (cleanup_undefined_stabs_types): Ditto.
+       All callers updated.
+
+2012-05-29  Tom Tromey  <tromey@redhat.com>
+
+       * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
+       fails.
+       * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
+       * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
+       fails.
+       * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
+       fails.
+
 2012-05-29  Tristan Gingold  <gingold@adacore.com>
 
        * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...