]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Factorize target program transformations in the GDB_AC_TRANSFORM macro.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index b0a09083ad44007dbba086f5489fc8d059746594..a21f6df645fd5737282def6b2326aa22e221a9d0 100644 (file)
@@ -1,3 +1,409 @@
+2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * configure: Regenerated.
+       * configure.ac: Use GDB_AC_TRANSFORM.
+       * Makefile.in (aclocal_m4_deps): Added transform.m4.
+       * acinclude.m4: sinclude transform.m4.
+       * transform.m4: New file.
+       (GDB_AC_TRANSFORM): New macro.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * NEWS: Announce the support for DTrace SDT probes.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
+       (amd64_dtrace_parse_probe_argument): New function.
+       (amd64_dtrace_probe_is_enabled): Likewise.
+       (amd64_dtrace_enable_probe): Likewise.
+       (amd64_dtrace_disable_probe): Likewise.
+       (amd64_linux_init_abi): Register the
+       `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
+       `gdbarch_dtrace_disable_probe' and
+       `gdbarch_dtrace_probe_is_enabled' hooks.
+       (amd64_dtrace_disabled_probe_sequence_1): New constant.
+       (amd64_dtrace_disabled_probe_sequence_2): Likewise.
+       (amd64_dtrace_enable_probe_sequence): Likewise.
+       (amd64_dtrace_disable_probe_sequence): Likewise.
+
+2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
+       the -probe-dtrace new vpossible value for PROBE_MODIFIER.
+       * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
+       handle ELF files.
+       * Makefile.in (SFILES): dtrace-probe.c added.
+       * configure: Regenerate.
+       * dtrace-probe.c: New file.
+       (SHT_SUNW_dof): New constant.
+       (dtrace_probe_type): New enum.
+       (dtrace_probe_arg): New struct.
+       (dtrace_probe_arg_s): New typedef.
+       (struct dtrace_probe_enabler): New struct.
+       (dtrace_probe_enabler_s): New typedef.
+       (dtrace_probe): New struct.
+       (dtrace_probe_is_linespec): New function.
+       (dtrace_dof_sect_type): New enum.
+       (dtrace_dof_dofh_ident): Likewise.
+       (dtrace_dof_encoding): Likewise.
+       (DTRACE_DOF_ENCODE_LSB): Likewise.
+       (DTRACE_DOF_ENCODE_MSB): Likewise.
+       (dtrace_dof_hdr): New struct.
+       (dtrace_dof_sect): Likewise.
+       (dtrace_dof_provider): Likewise.
+       (dtrace_dof_probe): Likewise.
+       (DOF_UINT): New macro.
+       (DTRACE_DOF_PTR): Likewise.
+       (DTRACE_DOF_SECT): Likewise.
+       (dtrace_process_dof_probe): New function.
+       (dtrace_process_dof): Likewise.
+       (dtrace_build_arg_exprs): Likewise.
+       (dtrace_get_arg): Likewise.
+       (dtrace_get_probes): Likewise.
+       (dtrace_get_probe_argument_count): Likewise.
+       (dtrace_can_evaluate_probe_arguments): Likewise.
+       (dtrace_evaluate_probe_argument): Likewise.
+       (dtrace_compile_to_ax): Likewise.
+       (dtrace_probe_destroy): Likewise.
+       (dtrace_gen_info_probes_table_header): Likewise.
+       (dtrace_gen_info_probes_table_values): Likewise.
+       (dtrace_probe_is_enabled): Likewise.
+       (dtrace_probe_ops): New variable.
+       (info_probes_dtrace_command): New function.
+       (_initialize_dtrace_probe): Likewise.
+       (dtrace_type_name): Likewise.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * gdbarch.sh (dtrace_parse_probe_argument): New.
+       (dtrace_probe_is_enabled): Likewise.
+       (dtrace_enable_probe): Likewise.
+       (dtrace_disable_probe): Likewise.
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * stap-probe.c (stap_probe_ops): Add NULLs in the static
+       stap_probe_ops for `enable_probe' and `disable_probe'.
+       * probe.c (enable_probes_command): New function.
+       (disable_probes_command): Likewise.
+       (_initialize_probe): Define the cli commands `enable probe' and
+       `disable probe'.
+       (parse_probe_linespec): New function.
+       (info_probes_for_ops): Use parse_probe_linespec.
+       * probe.h (probe_ops): New hooks `enable_probe' and
+       `disable_probe'.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * probe.c (compute_probe_arg): Moved from stap-probe.c
+       (compile_probe_arg): Likewise.
+       (probe_funcs): Likewise.
+       * stap-probe.c (compute_probe_arg): Moved to probe.c.
+       (compile_probe_arg): Likewise.
+       (probe_funcs): Likewise.
+
+2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * probe.c (print_ui_out_not_applicables): New function.
+       (exists_probe_with_pops): Likewise.
+       (info_probes_for_ops): Do not include column headers for probe
+       types for which no probe has been actually found on any object.
+       Also invoke `print_ui_out_not_applicables' in order to match the
+       column rows with the header when probes of several types are
+       listed.
+       Print the "Type" column.
+       * probe.h (probe_ops): Added a new probe operation `type_name'.
+       * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
+       (stap_type_name): New function.
+
+2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
+       (key_is_command_char): Delete.
+
+2015-02-17  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui.c (tui_enable): Resize windows before anything
+       might show a window.
+
+2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
+
+       PR gdb/17984
+       * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
+       (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
+       call.
+       * aarch64-tdep.h (tdesc_aarch64): Declare.
+
+2015-02-12  Mark Wielaard  <mjw@redhat.com>
+
+       * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
+
+2015-02-13  Doug Evans  <dje@google.com>
+
+       * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
+       anonymous_namespace to is_in_anonymous for consistency with the rest
+       of the file.
+       (cp_lookup_bare_symbol): Fix typo in comment.
+       (cp_search_static_and_baseclasses): Ditto.
+       (search_symbol_list): Use vertical space in comment better.
+       (reset_directive_searched): Ditto. Fix typo.
+       (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
+
+2015-02-13  Yao Qi  <yao.qi@arm.com>
+
+       * MAINTAINERS: Update my email address.
+
+2015-02-12  Doug Evans  <dje@google.com>
+
+       * completer.c (completion_list_add_name): Fix memory leak.
+
+2015-02-12  Doug Evans  <dje@google.com>
+
+       * completer.c (complete_line): Remove incorrect comment.
+
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
+       (py_print_frame): Use RETURN_MASK_ERROR.
+
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
+       function comment.  Wrap all function that can throw in cleanups.
+       (gdbpy_apply_frame_filter): Wrap all function that can throw in
+       cleanups.
+
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-framefilter.c (py_print_frame): Substitute goto error.
+       Remove the error label.
+
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-framefilter.c (py_print_frame): Put conditional code paths
+       with goto first, indent the former else codepath left.  Put variable
+       'elided' to a new inner block.
+
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
+
+2015-02-11  Pedro Alves  <palves@redhat.com>
+
+       * xcoffread.c (within_function): Delete.
+
+2015-02-11  Tom Tromey  <tromey@redhat.com>
+           Pedro Alves <palves@redhat.com>
+
+       * breakpoint.c (base_breakpoint_ops): Delete.
+       * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
+       * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
+       * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
+       * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
+       * python/py-arch.c (arch_object_type): Make extern.
+       * python/py-block.c (block_syms_iterator_object_type): Make extern.
+       * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
+       * python/py-cmd.c (cmdpy_object_type): Make extern.
+       * python/py-continueevent.c (continue_event_object_type)
+       * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
+       parameter.  Update all callers.
+       * python/py-evtregistry.c (eventregistry_object_type): Make extern.
+       * python/py-exitedevent.c (exited_event_object_type): Make extern.
+       * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
+       * python/py-function.c (fnpy_object_type): Make extern.
+       * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
+       * python/py-infevents.c (call_pre_event_object_type)
+       (inferior_call_post_event_object_type).
+       (memory_changed_event_object_type): Make extern.
+       * python/py-infthread.c (thread_object_type): Make extern.
+       * python/py-lazy-string.c (lazy_string_object_type): Make extern.
+       * python/py-linetable.c (linetable_entry_object_type)
+       (linetable_object_type, ltpy_iterator_object_type): Make extern.
+       * python/py-newobjfileevent.c (new_objfile_event_object_type)
+       (clear_objfiles_event_object_type): Make extern.
+       * python/py-objfile.c (objfile_object_type): Make extern.
+       * python/py-param.c (parmpy_object_type): Make extern.
+       * python/py-progspace.c (pspace_object_type): Make extern.
+       * python/py-signalevent.c (signal_event_object_type): Make extern.
+       * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
+       * python/py-type.c (type_object_type, field_object_type)
+       (type_iterator_object_type): Make extern.
+       * python/python.c (python_extension_script_ops)
+       (python_extension_ops): Make extern.
+       * stap-probe.c (stap_probe_ops): Make extern.
+
+2015-02-11  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (adjust_pc_after_break): Don't adjust the PC just
+       because the event thread is not the current thread.
+
+2015-02-11  Doug Evans  <xdje42@gmail.com>
+
+       * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
+       been initialized yet, return NULL.
+
+2015-02-11  Doug Evans  <dje@google.com>
+
+       * symfile.h (new_symfile_objfile): Delete.
+       * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
+       All callers updated.
+
+2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-io.c (tui_handle_resize_during_io): Call
+       tui_update_gdb_sizes() after resizing the screen.
+       * tui/tui.c (tui_enable): Resize the terminal before
+       calling tui_update_gdb_sizes().
+
+2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-io.c (tui_getc): Move cursor to the end of the command
+       line before printing a newline.
+
+2015-02-11  Mark Wielaard  <mjw@redhat.com>
+
+       * utils.c (producer_is_gcc): Return true or false.
+
+2015-02-10  Mark Wielaard  <mjw@redhat.com>
+
+       * utils.h (producer_is_gcc): Change return type to bool. Add major
+       argument.
+       * utils.c (producer_is_gcc): Likewise.
+       (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
+       * dwarf2read.c (check_producer): Likewise.
+
+2015-02-10  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (displaced_step_fixup): Switch to the event thread
+       before calling gdbarch_displaced_step_fixup.
+
+2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+       * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
+
+2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ada-varobj.c (ada_name_of_child): Constify parent.
+       (ada_path_expr_of_child): Same.
+       (ada_value_of_child): Same.
+       (ada_type_of_child): Same.
+       * c-varobj.c (c_is_path_expr_parent): Same.
+       (c_describe_child): Same.
+       (c_name_of_child): Same.
+       (c_value_of_child): Same.
+       (c_type_of_child): Same.
+       (cplus_number_of_children): Same.
+       (cplus_describe_child): Constify var.
+       (cplus_name_of_child): Constify parent.
+       (cplus_value_of_child): Same.
+       (cplus_type_of_child): Same.
+       * jv-varobj.c (java_name_of_child): Same.
+       (java_value_of_child): Same.
+       (java_type_of_child): Same.
+       * varobj.c (value_of_child): Same.
+       (varobj_default_is_path_expr_parent): Constify var, parent and return
+       value.
+       (varobj_get_path_expr): Constify var, modify path_expr through
+       mutable_var.
+       (install_new_value): Constify parent.
+       (value_of_child): Constify parent.
+       * varobj.h (struct varobj): Constify parent.
+       (struct lang_varobj_ops): Constify name_of_child, value_of_child and
+       type_of_child.
+       (varobj_get_path_expr): Constify var.
+       (varobj_get_path_expr_parent): Constify var and return value.
+
+2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
+
+       * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
+       (arm_prologue_this_id): Move PC and SP limit checks to
+       arm_prologue_unwind_stop_reason.
+       (arm_prologue_unwind) <stop_reason> : Set to
+       arm_prologue_unwind_stop_reason.
+
+2015-02-09  Mark Wielaard  <mjw@redhat.com>
+
+       * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
+       DW_LANG_Fortran08 as language_fortran.
+
+2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR remote/17946
+       * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
+       of pointer against char.
+
+2015-02-09  Mark Wielaard  <mjw@redhat.com>
+
+       * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
+       (c_type_print_modifier): Likewise.
+       * dwarf2read.c (read_tag_atomic_type): New function.
+       (read_type_die_1): Handle DW_TAG_atomic_type.
+       * gdbtypes.c (make_atomic_type): New function.
+       (recursive_dump_type): Handle TYPE_ATOMIC.
+       * gdbtypes.h (enum type_flag_values): Renumber.
+       (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
+       (TYPE_ATOMIC): New macro.
+       (make_atomic_type): Declare.
+
+2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (ftrace_find_call): Skip gaps.
+       (ftrace_new_function): Initialize level.
+       (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
+       (ftrace_new_switch): Update
+       level computation.
+       (ftrace_new_gap): New.
+       (ftrace_update_function): Create new function after gap.
+       (btrace_compute_ftrace_bts): Create gap on error.
+       (btrace_stitch_bts): Update parameters.  Clear trace if it
+       becomes empty.
+       (btrace_stitch_trace): Update parameters.  Update callers.
+       (btrace_clear): Reset the number of gaps.
+       (btrace_insn_get): Return NULL if the iterator points to a gap.
+       (btrace_insn_number): Return zero if the iterator points to a gap.
+       (btrace_insn_end): Allow gaps at the end.
+       (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
+       (btrace_find_insn_by_number): Assert that the found iterator does
+       not point to a gap.
+       (btrace_call_next, btrace_call_prev): Assert that the last function
+       is not a gap.
+       * btrace.h (btrace_bts_error): New.
+       (btrace_function): Update comment.
+       (btrace_function) <insn, insn_offset, number>: Update comment.
+       (btrace_function) <errcode>: New.
+       (btrace_thread_info) <ngaps>: New.
+       (btrace_thread_info) <replay>: Update comment.
+       (btrace_insn_get): Update comment.
+       * record-btrace.c (btrace_ui_out_decode_error): New.
+       (record_btrace_info): Print number of gaps.
+       (btrace_insn_history, btrace_call_history): Call
+       btrace_ui_out_decode_error for gaps.
+       (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
+
+2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
+       * nat/linux-btrace.c: (btrace_this_cpu): New.
+       (cpu_supports_bts): Call btrace_this_cpu.
+       (intel_supports_bts): Add cpu parameter.
+
+2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.h (btrace_insn_class): New.
+       (btrace_insn) <size, iclass>: New.
+       * btrace.c (ftrace_find_call): Update parameters.  Update users.
+       Use instruction classification.
+       (ftrace_new_return): Update parameters.  Update users.
+       (ftrace_update_function): Update parameters.  Update users.  Use
+       instruction classification.
+       (ftrace_update_insns): Update parameters.  Update users.
+       (ftrace_classify_insn): New.
+       (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
+       TRY_CATCH around call to gdb_insn_length.
+
 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
 
        * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):