gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 9091b68a3a70ecb8d1e6f24b1d567c8660591fc9..d43e2bf2318dff6cfe018f33f125b9ce6ba347c7 100644 (file)
@@ -1,3 +1,405 @@
+2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
+           Tom Tromey  <tromey@redhat.com>
+
+       PR build/15414:
+       * configure: Rebuild.
+       * configure.ac (build_warnings): Do not use -Wformat-nonliteral
+       with -Wno-format.
+
+2013-05-10  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (_initialize_remote): Fix spelling of
+       qXfer:traceframe-info:read packet in packet config command.
+
+2013-05-10  David Taylor  <dtaylor@emc.com>
+
+       PR remote/15455
+
+       * remote.c (remote_trace_set_readonly_regions): Do not overwrite
+       "QTro" at start of packet.
+
+2013-05-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-aix.c (solib_aix_relocate_section_addresses):
+       For the .bss section action, apply the same offset as
+       the .data section.
+
+2013-05-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-aix.c (solib_aix_relocate_section_addresses):
+       Remove FIXME comment.
+
+2013-05-10  Joel Brobecker  <brobecker@adacore.com>
+
+       PR tdep/15420:
+       * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
+       New functions, directly copied from sparc-sol-thread.c.
+       * sparc-sol-thread.c: Delete.
+       * configure.ac: Remove code handling sparc-solaris-thread.c.
+       * configure: Regenerate.
+
+2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * stack.c (backtrace_command_1): Add "no-filters", and Python frame
+       filter logic.
+       (backtrace_command): Add "no-filters" option parsing.
+       (_initialize_stack): Alter help to reflect "no-filters" option.
+       * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
+       (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
+       (py-frame.o): Add target
+       * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
+       filter files.
+       * python/python.h: Add new frame filter constants, and flag enum.
+       (apply_frame_filter): Add definition.
+       * python/python.c (apply_frame_filter): New non-Python
+       enabled function.
+       * python/py-utils.c (py_xdecref): New function.
+       (make_cleanup_py_xdecref): Ditto.
+       * python/py-objfile.c: Declare frame_filters dictionary.
+       (objfpy_dealloc): Add frame_filters dealloc.
+       (objfpy_new): Initialize frame_filters attribute.
+       (objfile_to_objfile_object): Ditto.
+       (objfpy_get_frame_filters): New function.
+       (objfpy_set_frame_filters): New function.
+       * python/py-progspace.c: Declare frame_filters dictionary.
+       (pspy_dealloc): Add frame_filters dealloc.
+       (pspy_new): Initialize frame_filters attribute.
+       (pspacee_to_pspace_object): Ditto.
+       (pspy_get_frame_filters): New function.
+       (pspy_set_frame_filters): New function.
+       * python/py-framefilter.c: New file.
+       * python/lib/gdb/command/frame_filters.py: New file.
+       * python/lib/gdb/frames.py: New file.
+       * python/lib/gdb/__init__.py: Initialize global frame_filters
+       dictionary
+       * python/lib/gdb/FrameDecorator.py: New file.
+       * python/lib/gdb/FrameIterator.py: New file.
+       * mi/mi-cmds.c (mi_cmds): Add frame filters command.
+       * mi/mi-cmds.h: Declare.
+       * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
+       --no-frame-filter logic, and Python frame filter logic.
+       (stack_enable_frame_filters): New function.
+       (parse_no_frame_option): Ditto.
+       (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
+       filter logic.
+       (mi_cmd_stack_list_locals): Ditto.
+       (mi_cmd_stack_list_args): Ditto.
+       (mi_cmd_stack_list_variables): Ditto.
+       * NEWS: Add frame filter note.
+
+2013-05-09  Doug Evans  <dje@google.com>
+
+       * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
+       All callers updated.
+       (syms_from_objfile): Ditto.  Make static.
+       (symbol_file_add_with_addrs): Renamed from
+       symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
+       num_offsets.  All callers updated.
+       * symfile.h (syms_from_objfile): Delete.
+
+       * symfile.c (decrement_reading_symtab): Add assert.
+       (increment_reading_symtab): Ditto.
+
+2013-05-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * source.c (forward_search_command): Replace call to getc
+       by call to fgetc.
+       (reverse_search_command): Likewise.
+
+2013-05-08  Doug Evans  <dje@google.com>
+
+       * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
+       matching test.
+
+2013-05-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c (info_cb): Factorize the code a little.
+
+2013-05-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c (info_cb): Rework the output of the "maintenance
+       info sol-threads" command a bit.
+
+2013-05-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
+       Replace ti.ti_startfunc by ti.ti_pc.
+
+2013-05-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-aix.c (solib_aix_free_library_list): New function
+       for the case where HAVE_LIBEXPAT is not defined.
+
+2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR breakpoints/15413:
+       * breakpoint.c (condition_completer): Simplify the code to
+       disconsider multiple locations of breakpoints when completing the
+       "condition" command.
+
+2013-05-07  Pierre Muller  <muller@sourceware.org>
+
+       * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
+       instead of <sys/wait.h>.
+
+2013-05-07  Pierre Muller  <muller@sourceware.org>
+
+       * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
+       trailing new line from warning message.
+
+2013-05-07  Pierre Muller  <muller@sourceware.org>
+
+       * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
+       (PC_SOLIB): Change type from ari_deprecate to ari_regression.
+
+2013-05-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
+       error message (ARI fix).
+
+2013-05-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * features/library-list-aix.dtd: Replace library-list by
+       library-list-aix.
+       * rs6000-nat.c: Replace library-list by library-list-aix
+       throughout.
+       * solib-aix.c: Likewise.
+
+2013-05-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
+       Renames TARGET_OBJECT_AIX_LIBRARIES.
+       * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
+       TARGET_OBJECT_LIBRARIES_AIX throughout.
+       * solib-aix.c: Likwise.
+
+2013-05-07  Yao Qi  <yao@codesourcery.com>
+
+       * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
+       (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
+
+2013-05-07  Yao Qi  <yao@codesourcery.com>
+
+       * solib-dsbt.c (enable_break): Declare.
+       (dsbt_current_sos): Remove call to enable_break2.
+       (enable_break2): Rename to enable_break.  Set solib breakpoint
+       on '_dl_debug_state'.
+       (enable_break): Remove.
+
+2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
+
+       * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
+       debug state prior to replicating existing hardware watchpoints or
+       breakpoints.
+
+2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gcore.c (gcore_create_callback): Ignore sections with
+       separate_debug_objfile_backlink != NULL.
+
+2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
+           Andrew Jenner  <andrew@codesourcery.com>
+           Chung-Lin Tang  <cltang@codesourcery.com>
+           Julian Brown  <julian@codesourcery.com>
+
+       Based on the nios2-elf port from Altera Corporation.
+
+       * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
+       nios2-linux-tdep.o.
+       (HFILES_NO_SRCDIR): Add nios2-tdep.h.
+       (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
+       * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
+       * nios2-tdep.h: New.
+       * nios2-tdep.c: New.
+       * nios2-linux-tdep.c: New.
+       * features/Makefile (WHICH): Add nios2-linux.
+       (nios2-linux-expedite): Set.
+       * features/nios2-cpu.xml: New.
+       * features/nios2.xml: New.
+       * features/nios2-linux.xml: New.
+       * features/nios2.c: New (autogenerated).
+       * features/nios2-linux.c: New (autogenerated).
+       * regformats/nios2-linux.dat: New (autogenerated).
+       * NEWS (Changes since GDB 7.6): Add new Nios II targets
+       and commands.
+
+2013-05-06  Doug Evans  <dje@google.com>
+
+       * symfile.c: Whitespace cleanup.
+
+       * solist.h (struct target_so_ops): New member clear_so.
+       * solib-svr4.c (svr4_clear_so): New function.
+       (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
+       * solib.c (clear_so): Renamed from free_so_symbols.
+       All callers updated.  Call target clear_so if it exists.
+
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * ada-lang.c (ada_value_primitive_packed_val): Don't
+       call value_incref.
+       * value.c (set_value_parent): Incref the new parent and decref
+       the old parent.
+       (value_copy, value_primitive_field): Use set_value_parent.
+
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
+       (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
+       if needed.
+       * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
+       * dwarf2read.c (write_constant_as_bytes)
+       (dwarf2_fetch_constant_bytes): New functions.
+
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_const_value_data): Remove unused
+       parameters.
+       (dwarf2_const_value_attr): Update.
+
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * somread.c (som_symfile_offsets): Add 'const' to addrs.
+       * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
+       * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
+       Remove declaration.
+
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
+       objfile's obstack.
+
+2013-05-06  Doug Evans  <dje@google.com>
+
+       * dbxread.c (process_one_symbol): Constify section_offsets parameter.
+       * stabsread.h (process_one_symbol): Update declaration.
+       * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
+       * elfread.c (elf_symfile_relocate_probe): Ditto.
+       * psymtab.c (relocate_psymtabs): Ditto.
+       * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
+       (objfile_relocate): Ditto.
+       * objfiles.h (objfile_relocate): Update declaration.
+       * symfile.c (relative_addr_info_to_section_offsets): Constify
+       addrs parameter.
+       (default_symfile_offsets): Ditto.
+       (syms_from_objfile_1): Constify offsets parameter.
+       (syms_from_objfile): Ditto.
+       (symbol_file_add_with_addrs_or_offsets): Ditto.
+       (symfile_map_offsets_to_segments): Constify data parameter.
+       * symfile.h (struct quick_symbol_functions): Constify new_offsets,
+       delta parameters of member relocate.
+       (struct sym_probe_fns): Constify new_offsets,
+       delta parameters of member sym_relocate_probe.
+       (struct sym_fns): Constify section_addr_info parameter of member
+       sym_offsets.
+       (relative_addr_info_to_section_offsets): Update declaration.
+       (default_symfile_offsets): Ditto.
+       (syms_from_objfile): Ditto.
+       (symfile_map_offsets_to_segments): Ditto.
+
+       * symfile.c (syms_from_objfile_1): Use correct section count when
+       objfile->sf == NULL.
+
+2013-05-06  Mike Frysinger  <vapier@gentoo.org>
+
+       * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
+
+2013-05-06  Doug Evans  <dje@google.com>
+
+       * psympriv.h (struct partial_symtab): Augment comment for member
+       section_offsets.
+
+2013-05-06  Joel Brobecker  <brobecker@adacore.com>
+
+       Reimplement shared library support on ppc-aix...
+       * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
+       * features/library-list-aix.dtd: New file.
+       * solib-aix.h, solib-aix.c: New file.
+       * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
+       (rs6000_find_toc_address_hook): Delete.
+       (rs6000_push_dummy_call): Rewrite code setting the TOC value.
+       (rs6000_aix_init_osabi): Register solib_aix_so_ops.
+       * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
+       "xml-utils.h".
+       (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
+       (vmap_symtab, fixup_breakpoints): Delete.
+       (rs6000_xfer_shared_libraries): New function.
+       (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
+       (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
+       (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
+       (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
+       (rs6000_xfer_shared_library): New function.
+       (find_toc_address): Delete.
+       (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
+       * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
+       * xcoffread.c (record_minimal_symbol): Reloate symbol address
+       before creating minimal symbol.  Adjust function description
+       accordingly.
+       (scan_xcoff_symtab): Replace call to
+       prim_record_minimal_symbol_and_info by call to
+       record_minimal_symbol.
+       (xcoff_symfile_offsets): Reimplement mostly as a wrapper
+       around default_symfile_offsets.
+       * configure.tgt: Add solib-aix.o to gdb_target_obs for
+       powerpc-aix targets.
+       * config/rs6000/nm-rs6000.h: Delete.
+       * config/powerpc/aix.mh (NAT_FILE): Delete.
+       (NATDEPFILES): Remove xcoffsolib.o.
+       * Makefile.in (XMLFILES): Add library-list-aix.dtd.
+       (ALL_TARGET_OBS): Add solib-aix.o.
+       (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
+       config/rs6000/nm-rs6000.h.  Add solib-aix.h.
+       (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
+       * xcoffsolib.h, xcoffsolib.c: Delete.
+
+       * solib.c (reload_shared_libraries): Remove reference to
+       SOLIB_CREATE_INFERIOR_HOOK.
+       * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
+       (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
+       (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
+       comment.
+       * corelow.c (deprecated_core_resize_section_table): Delete.
+       * exec.c: Remove include of xcoffsolib.h".
+       (map_vmap, vmap): Delete.
+       (exec_close_1): Remove references to vmap.
+       (exec_file_attach): Remove vmap handling code, and reference
+       to DEPRECATED_IBM6000_TARGET.
+       (bfdsec_to_vmap): Delete.
+       (exec_files_info): Remove block of code handling VMAP.
+       * infcmd.c (post_create_inferior): Remove reference to
+       SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
+       * infrun.c (follow_exec): Remove reference to
+       SOLIB_CREATE_INFERIOR_HOOK.
+       * stack.c (print_frame): Remove reference to PC_SOLIB.
+       * solib-dsbt.c (dsbt_current_sos): Adjust comment.
+       (dsbt_relocate_main_executable): Likewise.
+       * solib-frv.c (frv_current_sos): Likewise.
+
+2013-05-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
+       to target_write_memory and target_read_memory.
+
+2013-05-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * darwin-nat.c (darwin_setup_fake_stop_event): New function.
+       (darwin_attach): Adjust using darwin_setup_fake_stop_event.
+
+2013-05-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * darwin-nat.c: Replace all "%x" instances in format strings
+       into "0x%x" throughout.
+
+2013-05-06  Joel Brobecker  <brobecker@adacore.com>
+
+       * darwin-nat.c (darwin_mourn_inferior): Replace call to
+       gdb_assert by call to MACH_CHECK_ERROR.
+       (darwin_attach_pid): Raise an error rather than a failed
+       assertion when various system calls failed.  Report a warning
+       instead of raising a failed assertion when PREV_NOT is not NULL
+       after call to mach_port_request_notification.
+       (darwin_ptrace_me): Raise an error rather than a failed
+       assertion when read returns nonzero.
+
 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
 
        * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
        (_initialize_ctf): New.
        * tracepoint.c (get_tracepoint_number): New
        (get_uploaded_tsv): Remove 'static'.
-       (struct traceframe_info, trace_regblock_size): Move it to ...
+       (struct traceframe_info, trace_regblock_size): Move it to ...
        * tracepoint.h: ... here.
        (get_tracepoint_number): Declare it.
        (get_uploaded_tsv): Declare it.
 
 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
 
-        * ada-lex.l (rules): Only recognize 'thread' as a
-        delimiter when followed by numerals, as for c-exp.y.
-        Use new rewind_to_char function to rewind the input for
-        expression-delimiting tokens.
-        (rewind_to_char): New function.
+       * ada-lex.l (rules): Only recognize 'thread' as a
+       delimiter when followed by numerals, as for c-exp.y.
+       Use new rewind_to_char function to rewind the input for
+       expression-delimiting tokens.
+       (rewind_to_char): New function.
 
 2013-03-11  Pedro Alves  <palves@redhat.com>
            Jan Kratochvil  <jan.kratochvil@redhat.com>
            Pedro Alves  <palves@redhat.com>
 
        * tracepoint.c (tfile_trace_find): For tfind
-       pc/tp/range/outside, look for the next trace frame instead of
-       always starting from frame 0.
+       pc/tp/range/outside, look for the next trace frame instead of
+       always starting from frame 0.
 
 2013-02-26  Anthony Green  <green@moxielogic.com>
 
This page took 0.029608 seconds and 4 git commands to generate.