X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=b3d86505e0160b5ed47d67df1442617c07ddd361;hb=77b64a49e24dd4b5f4c7edb5d4030fe8aa1eec44;hp=d97b9c4e3a2011c3477c7d7799db48dbd1fa74ca;hpb=276d885b572b12221f639641846ab94ef9582995;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d97b9c4e3a..b3d86505e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1080 @@ +2015-02-26 Pedro Alves + + * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF. + * complaints.c (vcomplaint): Pass argument FMT directly to + printf-like functions instead of complaint->fmt. + * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF. + * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF. + * compile/compile-loc2c.c (pushf, unary, binary): Add + ATTRIBUTE_PRINTF. + (do_compile_dwarf_expr_to_c): Pass string literal as format string + to pushf. + (BINARY): Pass string literal as format string to 'binary'. + * compile/compile-object-load.c (link_callbacks_einfo): Add + ATTRIBUTE_PRINTF. + * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF. + +2015-02-26 Pedro Alves + + * windows-termcap.c: Rename to ... + * stub-termcap.c: ... this. Adjust header line. + * Makefile.in (SFILES): Refer to stub-termcap.c instead of + windows-termcap.c. + * configure: Regenerate. + * configure.ac: Refer to stub-termcap.o instead of + windows-termcap.o. + * gdb_curses.h: Mention stub-termcap.c instead of + windows-termcap.c. + +2015-02-26 Jan Kratochvil + + * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym) + (gcc_symbol_address): Call gnu_ifunc_resolve_addr. + +2015-02-26 Antoine Tremblay + + * gdb/infcmd.c (print_return_value): use type_to_string to print type. + +2015-02-26 Jan Kratochvil + + * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for + bfd_canonicalize_symtab. + +2015-02-25 John Baldwin + + * amd64fbsd-nat.c: Include sys/user.h. + (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl + instead of KERN_PS_STRINGS to locate the signal trampoline. + * i386fbsd-nat.c: Include sys/user.h. + (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl + instead of KERN_PS_STRINGS to locate the signal trampoline. + * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New. + (amd64fbsd_sigtramp_p): New. + (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No + longer set default values. + (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p". + * i386fbsd-tdep.c (i386fbsd_sigtramp_start) + (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end) + (i386fbsd_freebsd4_sigtramp_start) + (i386fbsd_freebsd4_sigtramp_middle) + (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start) + (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New. + (i386fbsd_sigtramp_p): New. + (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No + longer set default values. + (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p". + +2015-02-25 John Baldwin + + * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use + get_frame_register instead of frame_unwind_register_unsigned. + +2015-02-26 Jan Kratochvil + + PR build/18033 + * compile/compile-c-support.c (c_compute_program): Change // comment. + * compile/compile-object-load.c (setup_sections): Change // comment. + +2015-02-26 Joel Brobecker + + PR build/18033: + * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment. + +2015-02-23 Pedro Alves + + * remote.c (skip_to_semicolon): New function. + (remote_parse_stop_reply) : Use it. Don't + special case the stop reasons that look like hex numbers + upfront. Instead handle real register numbers after matching + all the known stop reasons. + +2015-02-21 Doug Evans + + PR c++/17976, symtab/17821 + * cp-namespace.c (cp_search_static_and_baseclasses): New parameter + is_in_anonymous. All callers updated. + (find_symbol_in_baseclass): Ditto. + (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks + for symbols in an anonymous namespace. + * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch + DW_AT_name directly. + (dwarf2_name): Convert missing namespace name to + CP_ANONYMOUS_NAMESPACE_STR. + +2015-02-20 Pedro Alves + + * linux-nat.c (linux_handle_extended_wait): Call + thread_db_notice_clone whenever a new clone LWP is detected. + (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New + functions. + * linux-nat.h (thread_db_attach_lwp): Delete declaration. + (thread_db_notice_clone, linux_stop_and_wait_all_lwps) + (linux_unstop_all_lwps): Declare. + * linux-thread-db.c (struct thread_get_info_inout): Delete. + (thread_get_info_callback): Delete. + (thread_from_lwp): Use td_thr_get_info and record_thread. + (thread_db_attach_lwp): Delete. + (thread_db_notice_clone): New function. + (try_thread_db_load_1): If /proc is mounted and shows the + process'es task list, walk over all LWPs and call thread_from_lwp + instead of relying on td_ta_thr_iter. + (attach_thread): Don't call check_thread_signals here. Split the + tail part of the function (which adds the thread to the core GDB + thread list) to ... + (record_thread): ... this function. Call check_thread_signals + here. + (thread_db_wait): Don't call thread_db_find_new_threads_1. Always + call thread_from_lwp. + (thread_db_update_thread_list): Rename to ... + (thread_db_update_thread_list_org): ... this. + (thread_db_update_thread_list): New function. + (thread_db_find_thread_from_tid): Delete. + (thread_db_get_ada_task_ptid): Simplify. + * nat/linux-procfs.c: Include . + (linux_proc_task_list_dir_exists): New function. + * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare. + +2015-02-20 Pedro Alves + + * linux-nat.c (lin_lwp_attach_lwp): No longer special case the + main LWP. Handle the case of waitpid returning 0 if we're already + attached to the LWP. Don't set the LWP's last_resume_kind to + resume_stop if we already knew about the LWP. + (linux_nat_filter_event): Add debug logs. + +2015-02-20 Pedro Alves + + * target.h (forward_target_decr_pc_after_break): Delete + declaration. + +2015-02-20 Pedro Alves + + PR threads/18006 + * linux-thread-db.c (thread_get_info_callback): Return early if + the thread's lwp id is -1. + +2015-02-20 Joel Brobecker + + GDB 7.9 released. + +2015-02-19 Steve Ellcey + + * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr. + (dtrace_get_probes) Change type of variable 'dof'. + +2015-02-19 Antoine Tremblay + + PR breakpoints/16812 + * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV. + * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add. + * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint. + +2015-02-19 David Taylor + + * common/ax.def (setv): Fix consumed entry in setv DEFOP. + +2015-02-18 Patrick Palka + + * tui/tui-io.c (tui_handle_resize_during_io): Remove this + function. + (tui_putc): Don't call tui_handle_resize_during_io. + (tui_getc): Likewise. + (tui_mld_getc): Likewise. + * tui/tui-win.c: Include event-loop.h and tui/tui-io.h. + (tui_sigwinch_token): New static variable. + (tui_initialize_win): Adjust documentation. Set + tui_sigwinch_token. + (tui_async_resize_screen): New asynchronous callback. + (tui_sigwinch_handler): Adjust documentation. Asynchronously + invoke tui_async_resize_screen. + +2015-02-18 Jose E. Marchesi + + * 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 + + * NEWS: Announce the support for DTrace SDT probes. + +2015-02-17 Jose E. Marchesi + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * tui/tui-io.c (tui_getc): Don't call key_is_command_char. + (key_is_command_char): Delete. + +2015-02-17 Pedro Alves + + * tui/tui.c (tui_enable): Resize windows before anything + might show a window. + +2015-02-17 Max Ostapenko + + 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 + + * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false". + +2015-02-13 Doug Evans + + * 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 + + * MAINTAINERS: Update my email address. + +2015-02-12 Doug Evans + + * symtab.c (completion_list_add_name): Fix memory leak. + +2015-02-12 Doug Evans + + * completer.c (complete_line): Remove incorrect comment. + +2015-02-11 Jan Kratochvil + + * python/py-framefilter.c (py_print_single_arg, enumerate_locals) + (py_print_frame): Use RETURN_MASK_ERROR. + +2015-02-11 Jan Kratochvil + + * 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 + + * python/py-framefilter.c (py_print_frame): Substitute goto error. + Remove the error label. + +2015-02-11 Jan Kratochvil + + * 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 + + * python/py-framefilter.c (py_print_frame): Whitespacing fixes. + +2015-02-11 Pedro Alves + + * xcoffread.c (within_function): Delete. + +2015-02-11 Tom Tromey + Pedro Alves + + * 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 + + * 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 + + * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't + been initialized yet, return NULL. + +2015-02-11 Doug Evans + + * symfile.h (new_symfile_objfile): Delete. + * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. + All callers updated. + +2015-02-11 Patrick Palka + + * 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 + + * tui/tui-io.c (tui_getc): Move cursor to the end of the command + line before printing a newline. + +2015-02-11 Mark Wielaard + + * utils.c (producer_is_gcc): Return true or false. + +2015-02-10 Mark Wielaard + + * 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 + + * infrun.c (displaced_step_fixup): Switch to the event thread + before calling gdbarch_displaced_step_fixup. + +2015-02-10 Antoine Tremblay + + * MAINTAINERS (Write After Approval): Add Antoine Tremblay. + +2015-02-10 Simon Marchi + + * 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 + + * 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) : Set to + arm_prologue_unwind_stop_reason. + +2015-02-09 Mark Wielaard + + * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and + DW_LANG_Fortran08 as language_fortran. + +2015-02-09 Sergio Durigan Junior + + PR remote/17946 + * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison + of pointer against char. + +2015-02-09 Mark Wielaard + + * 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 + + * 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) : Update comment. + (btrace_function) : New. + (btrace_thread_info) : New. + (btrace_thread_info) : 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 + + * 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 + + * btrace.h (btrace_insn_class): New. + (btrace_insn) : 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 + + * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace): + Update parameters. Update users. + +2015-02-09 Markus Metzger + + * btrace.c (parse_xml_btrace_conf_bts): Add size. + (btrace_conf_bts_attributes): New. + (btrace_conf_children): Add attributes. + * common/btrace-common.h (btrace_config_bts): New. + (btrace_config): New. + (btrace_config): Update comment. + * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): + Use config. + * features/btrace-conf.dtd: Increment version. Add size + attribute to bts element. + * record-btrace.c (set_record_btrace_bts_cmdlist, + show_record_btrace_bts_cmdlist): New. + (record_btrace_adjust_size, record_btrace_print_bts_conf, + record_btrace_print_conf, cmd_set_record_btrace_bts, + cmd_show_record_btrace_bts): New. + (record_btrace_info): Call record_btrace_print_conf. + (_initialize_record_btrace): Add commands. + * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. + (remote_protocol_features): Add Qbtrace-conf:bts:size packet. + (btrace_sync_conf): Synchronize bts size. + (_initialize_remote): Add Qbtrace-conf:bts:size packet. + * NEWS: Announce new commands and new packets. + +2015-02-09 Markus Metzger + + * Makefile.in (XMLFILES): Add btrace-conf.dtd. + * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. + (x86_linux_btrace_conf): New. + (x86_linux_create_target): Initialize to_btrace_conf. + * nat/linux-btrace.c (linux_enable_btrace): Update parameters. + Check format. Split into this and ... + (linux_enable_bts): ... this. + (linux_btrace_conf): New. + (perf_event_skip_record): Renamed into ... + (perf_event_skip_bts_record): ... this. Updated users. + (linux_disable_btrace): Split into this and ... + (linux_disable_bts): ... this. + (linux_read_btrace): Check format. + * nat/linux-btrace.h (linux_enable_btrace): Update parameters. + (linux_btrace_conf): New. + (btrace_target_info): Moved. + (btrace_target_info): New. + (btrace_target_info): Split into this and ... + (btrace_tinfo_bts): ... this. Updated users. + * btrace.c (btrace_enable): Update parameters. + (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf) + (btrace_conf_children, btrace_conf_attributes) + (btrace_conf_elements): New. + * btrace.h (btrace_enable): Update parameters. + (btrace_conf, parse_xml_btrace_conf): New. + * common/btrace-common.h (btrace_config): New. + * feature/btrace-conf.dtd: New. + * record-btrace.c (record_btrace_conf): New. + (record_btrace_cmdlist): New. + (record_btrace_enable_warn, record_btrace_open): Pass + &record_btrace_conf. + (record_btrace_info): Print recording format. + (cmd_record_btrace_bts_start): New. + (cmd_record_btrace_start): Call cmd_record_btrace_bts_start. + (_initialize_record_btrace): Add "record btrace bts" subcommand. + Add "record bts" alias command. + * remote.c (remote_state): New. + (remote_btrace_reset, PACKET_qXfer_btrace_conf): New. + (remote_protocol_features): Add qXfer:btrace-conf:read. + (remote_open_1): Call remote_btrace_reset. + (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF. + (btrace_target_info): New. + (btrace_sync_conf, btrace_read_config): New. + (remote_enable_btrace): Update parameters. Call btrace_sync_conf and + btrace_read_conf. + (remote_btrace_conf): New. + (init_remote_ops): Initialize to_btrace_conf. + (_initialize_remote): Add qXfer:btrace-conf packet. + * target.c (target_enable_btrace): Update parameters. + (target_btrace_conf): New. + * target.h (target_enable_btrace): Update parameters. + (target_btrace_conf): New. + (target_object): New. + (target_ops): Update parameters and comment. + (target_ops): New. + * target-delegates: Regenerate. + * target-debug.h (target_debug_print_const_struct_btrace_config_p) + (target_debug_print_const_struct_btrace_target_info_p): New. + * NEWS: Announce new command and new packet. + +2015-02-09 Markus Metzger + + * nat/linux-btrace.h (perf_event_buffer): New. + (btrace_target_info) : Replace with ... + : ... this. + * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size) + (perf_event_buffer_size, perf_event_buffer_begin) + (perf_event_buffer_end, linux_btrace_has_changed): Removed. + Updated users. + (perf_event_new_data): New. + +2015-02-09 Markus Metzger + + * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS. + * record-btrace.c (record_btrace_open): Remove call to + target_supports_btrace. + * remote.c (remote_supports_btrace): Update parameters. + * target.c (target_supports_btrace): Update parameters. + * target.h (to_supports_btrace, target_supports_btrace): Update + parameters. + * target-delegates.c: Regenerate. + * target-debug.h (target_debug_print_enum_btrace_format): New. + * nat/linux-btrace.c + (kernel_supports_btrace): Rename into ... + (kernel_supports_bts): ... this. Update users. Update warning text. + (intel_supports_btrace): Rename into ... + (intel_supports_bts): ... this. Update users. + (cpu_supports_btrace): Rename into ... + (cpu_supports_bts): ... this. Update users. + (linux_supports_btrace): Update parameters. Split into this and ... + (linux_supports_bts): ... this. + * nat/linux-btrace.h (linux_supports_btrace): Update parameters. + +2015-02-09 Markus Metzger + + * Makefile.in (SFILES): Add common/btrace-common.c. + (COMMON_OBS): Add common/btrace-common.o. + (btrace-common.o): Add build rules. + * btrace.c (parse_xml_btrace): Update parameters. + (parse_xml_btrace_block): Set format field. + (btrace_add_pc, btrace_fetch): Use struct btrace_data. + (do_btrace_data_cleanup, make_cleanup_btrace_data): New. + (btrace_compute_ftrace): Split into this and... + (btrace_compute_ftrace_bts): ...this. + (btrace_stitch_trace): Split into this and... + (btrace_stitch_bts): ...this. + * btrace.h (parse_xml_btrace): Update parameters. + (make_cleanup_btrace_data): New. + * common/btrace-common.c: New. + * common/btrace-common.h: Include common-defs.h. + (btrace_block_s): Update comment. + (btrace_format): New. + (btrace_format_string): New. + (btrace_data_bts): New. + (btrace_data): New. + (btrace_data_init, btrace_data_fini, btrace_data_empty): New. + * remote.c (remote_read_btrace): Update parameters. + * target.c (target_read_btrace): Update parameters. + * target.h (target_read_btrace): Update parameters. + (target_ops): Update parameters. + * x86-linux-nat.c (x86_linux_read_btrace): Update parameters. + * target-delegates.c: Regenerate. + * target-debug (target_debug_print_struct_btrace_data_p): New. + * nat/linux-btrace.c (linux_read_btrace): Split into this and... + (linux_read_bts): ...this. + * nat/linux-btrace.h (linux_read_btrace): Update parameters. + +2015-02-06 Doug Evans + + * remote-m32r-sdi.c: Include symfile.h. + +2015-02-06 Doug Evans + + * symtab.h (clear_symtab_users, deduce_language_from_filename): Move + * symfile.h (clear_symtab_users, deduce_language_from_filename): ... + to here. + +2015-02-06 Pedro Alves + + * linux-thread-db.c (find_new_threads_callback): Add debug output. + +2015-02-06 Simon Marchi + + PR gdb/15678 + * breakpoint.c (map_breakpoint_numbers): Check for empty args string. + (enable_count_command): Check args for NULL value. + +2015-02-05 Doug Evans + + * guile/scm-frame.c: Fix spelling errors in a comment. + +2015-02-04 Jan Kratochvil + + * python/python-internal.h (Py_hash_t): Define it for Python <3.2. + * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the + return type. + +2015-02-04 Pedro Alves + + * linux-nat.c (handle_extended_wait): Don't resume LWPs here. + (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait + returns true. + (resume_stopped_resumed_lwps): Don't check whether the thread is + marked as executing. + (linux_nat_wait_1): Use resume_stopped_resumed_lwps. + +2015-02-04 Andreas Arnez + + * regset.h (struct regset): Add flags field. + (REGSET_VARIABLE_SIZE): New value for a regset's flags field. + * corelow.c (get_core_register_section): Add warning if the size + exceeds the requested size and the regset does not have the + REGSET_VARIABLE_SIZE flag set. + * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE + flag. + * armbsd-tdep.c (armbsd_gregset): Likewise. + * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise. + * hppaobsd-tdep.c (hppaobsd_gregset): Likewise. + * m68kbsd-tdep.c (m68kbsd_gregset): Likewise. + * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise. + +2015-02-04 Andreas Arnez + + * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections): + For ".reg-xstate", explicitly specify the requested section size + via X86_XSTATE_SIZE instead of just 0 on input and + X86_XSTATE_MAX_SIZE on output. + * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): + Likewise. + +2015-02-04 Andreas Arnez + + PR corefiles/17808: + * gdbarch.sh (iterate_over_regset_sections_cb): Document this + function type, particularly its SIZE parameter. + * gdbarch.h: Regenerate. + * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare + actual against required size using ">=" instead of "==". + (amd64_collect_fpregset): Likewise. + * i386-tdep.c (i386_supply_gregset): Likewise. + (i386_collect_gregset): Likewise. + (i386_supply_fpregset): Likewise. + (i386_collect_fpregset): Likewise. + * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise. + (mips_fill_gregset_wrapper): Likewise. + (mips_supply_fpregset_wrapper): Likewise. + (mips_fill_fpregset_wrapper): Likewise. + (mips64_supply_gregset_wrapper): Likewise. + (mips64_fill_gregset_wrapper): Likewise. + (mips64_supply_fpregset_wrapper): Likewise. + (mips64_fill_fpregset_wrapper): Likewise. + * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise. + (am33_supply_fpregset_method): Likewise. + (am33_collect_gregset_method): Likewise. + (am33_collect_fpregset_method): Likewise. + +2015-02-04 Doug Evans + Pedro Alves + Eli Zaretskii + + PR tui/17810 + * tui/tui-command.c (tui_refresh_cmd_win): New function. + * tui/tui-command.c (tui_refresh_cmd_win): Declare. + * tui/tui-file.c: #include tui/tui-command.h. + (tui_file_fputs): Refresh command window if stream is not gdb_stdout. + (tui_file_flush): Refresh command window if stream is gdb_stdout. + * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush. + +2015-02-04 Pedro Alves + + Fix build breakage. + * event-loop.c (gdb_do_one_event): Add default switch case. + +2015-02-03 Jan Kratochvil + + Filter out inferior gcc option -fpreprocessed. + * compile/compile.c (filter_args): New function. + (get_args): Use it. + +2015-02-03 Pedro Alves + + * event-loop.c: Don't declare nor define a queue type for + gdb_event_p. + (event_queue): Delete. + (create_event, create_file_event, gdb_event_xfree) + (initialize_event_loop, process_event): Delete. + (gdb_do_one_event): Return as soon as one event is handled. + (handle_file_event): Change prototype. Used the passed in + file_handler pointer and ready_mask instead of looping over all + file handlers. + (gdb_wait_for_event): Update the poll/select timeouts before + blocking. Run event handlers directly instead of queueing events. + Return as soon as one event is handled. + (struct async_event_handler_data): Delete. + (invoke_async_event_handler): Delete. + (check_async_event_handlers): Change return type to int. Run + event handlers directly instead of queueing events. Return as + soon as one event is handled. + (handle_timer_event): Delete. + (update_wait_timeout): New function, factored out from + poll_timers. + (poll_timers): Reimplement. + * event-loop.h (initialize_event_loop): Delete declaration. + * top.c (gdb_init): Don't call initialize_event_loop. + +2015-02-03 Pedro Alves + + * event-loop.c (clear_async_event_handler): New function. + * event-loop.h (clear_async_event_handler): New declaration. + * record-btrace.c (record_btrace_async): New function. + (init_record_btrace_ops): Install record_btrace_async. + * record-full.c (record_full_async): New function. + (record_full_resume): Don't mark the async event source here. + (init_record_full_ops): Install record_full_async. + (record_full_core_resume): Don't mark the async event source here. + (init_record_full_core_ops): Install record_full_async. + * remote.c (remote_async): Mark and clear the async stop reply + queue event-loop token as appropriate. + +2015-02-03 Pedro Alves + + * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use + target_is_async_p instead of target_can_async. + (linux_nat_wait): Use target_is_async_p instead of + target_can_async. Don't enable async here. + * remote.c (interrupt_query, remote_wait, putpkt_binary): Use + target_is_async_p instead of target_can_async. + +2015-02-02 Simon Marchi + + * varobj.h (lang_varobj_ops): Mention which return values need + to be freed. + +2015-02-02 Joel Brobecker + + * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker. + +2015-02-02 Joel Brobecker + + PR gdb/17856: + * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache + results found in the cache. + +2015-02-02 Joel Brobecker + + PR gdb/17854: + * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache + when allocating a new one. + +2015-02-01 Tom Tromey + + * MAINTAINERS: Remove myself. + +2015-01-31 Doug Evans + + * dwarf2read.c (process_structure_scope): Update setting of + TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. + * gdbtypes.c (internal_type_vptr_fieldno): New function. + (set_type_vptr_fieldno): New function. + (internal_type_vptr_basetype): New function. + (set_type_vptr_basetype): New function. + (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, + TYPE_VPTR_BASETYPE. + (allocate_cplus_struct_type): Initialize vptr_fieldno. + (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... + (print_cplus_stuff): ... moved here. + (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. + * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype + moved to ... + (struct cplus_struct_type): ... here. All uses updated. + (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. + (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. + (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. + * stabsread.c (read_tilde_fields): Update setting of + TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. + +2015-01-31 Doug Evans + + * cp-valprint.c (cp_find_class_member): Rename parameter domain_p + to self_p. + (cp_print_class_member): Rename local domain to self_type. + * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local + domain_type to self_type. + (set_die_type) : Handle + TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD. + * gdb-gdb.py (StructMainTypePrettyPrinter): Handle + TYPE_SPECIFIC_SELF_TYPE. + * gdbtypes.c (internal_type_self_type): New function. + (set_type_self_type): New function. + (smash_to_memberptr_type): Rename parameter domain to self_type. + Update setting of TYPE_SELF_TYPE. + (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE. + (smash_to_method_type): Rename parameter domain to self_type. + Update setting of TYPE_SELF_TYPE. + (check_stub_method): Call smash_to_method_type. + (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE. + (copy_type_recursive): Ditto. + * gdbtypes.h (enum type_specific_kind): New value + TYPE_SPECIFIC_SELF_TYPE. + (struct main_type) : New member self_type. + (struct cplus_struct_type) : Update comment. + (TYPE_SELF_TYPE): Rewrite. + (internal_type_self_type, set_type_self_type): Declare. + * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to + self_type. + (gnuv3_method_ptr_to_value): Rename local domain_type to self_type. + * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with + TYPE_TARGET_TYPE. + * stabsread.c (read_member_functions): Mark methods with + TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of + TYPE_SELF_TYPE. + +2015-01-31 Doug Evans + + * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE. + All uses updated. + +2015-01-31 Doug Evans + + * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs + or unions. Return zero if union. + (gnuv3_get_vtable): Call check_typedef. Assert only passed structs. + (gnuv3_rtti_type): Pass already-check_typedef'd value to + gnuv3_get_vtable. + (compute_vtable_size): Assert only passed structs. + (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs. + +2015-01-31 Doug Evans + + * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD + kinds. + +2015-01-31 Gary Benson + Doug Evans + + PR cli/9007 + PR cli/11920 + PR cli/15548 + * cli/cli-cmds.c (complete_command): Notify user if max-completions + reached. + * common/common-exceptions.h (enum errors) + : New value. + * completer.h (get_max_completions_reached_message): New declaration. + (max_completions): Likewise. + (completion_tracker_t): New typedef. + (new_completion_tracker): New declaration. + (make_cleanup_free_completion_tracker): Likewise. + (maybe_add_completion_enum): New enum. + (maybe_add_completion): New declaration. + (throw_max_completions_reached_error): Likewise. + * completer.c (max_completions): New global variable. + (new_completion_tracker): New function. + (free_completion_tracker): Likewise. + (make_cleanup_free_completion_tracker): Likewise. + (maybe_add_completions): Likewise. + (throw_max_completions_reached_error): Likewise. + (complete_line): Remove duplicates and limit result to max_completions + entries. + (get_max_completions_reached_message): New function. + (gdb_display_match_list): Handle max_completions. + (_initialize_completer): New declaration and function. + * symtab.c: Include completer.h. + (completion_tracker): New static variable. + (completion_list_add_name): Call maybe_add_completion. + (default_make_symbol_completion_list_break_on_1): Renamed from + default_make_symbol_completion_list_break_on. Maintain + completion_tracker across calls to completion_list_add_name. + (default_make_symbol_completion_list_break_on): New function. + * top.c (init_main): Set rl_completion_display_matches_hook. + * tui/tui-io.c: Include completer.h. + (tui_old_rl_display_matches_hook): New static global. + (tui_rl_display_match_list): Notify user if max-completions reached. + (tui_setup_io): Save/restore rl_completion_display_matches_hook. + * NEWS (New Options): Mention set/show max-completions. + +2015-01-31 Gary Benson + + * symtab.c (struct add_name_data) : New field. + Updated comments. + (add_symtab_completions): New function. + (symtab_expansion_callback): Likewise. + (default_make_symbol_completion_list_break_on): Set datum.code. + Move minimal symbol scan before calling expand_symtabs_matching. + Scan known primary symtabs for externs and statics before calling + expand_symtabs_matching. Pass symtab_expansion_callback as + expansion_notify argument to expand_symtabs_matching. Do not scan + primary symtabs for externs and statics after calling + expand_symtabs_matching. + 2015-01-31 Gary Benson * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.