X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=7c7e878d84d4b2e80f3549e56abed7e3502959df;hb=55325047241cf38dae3c6a577561c740a9024bf3;hp=de5eef86bd4c1a1dd65fddf9b2120e53855121ca;hpb=400678a494713abf8f7ea2367f213109a2c4b886;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de5eef86bd..7c7e878d84 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,10 +1,349 @@ -2015-01-11 Doug Evans +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 - * symtab.c (symbol_cache_mark_found): Improve function comment. - Rename parameter objfile to objfile_context. - (symbol_cache_mark_not_found): Ditto. + 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-10 Doug Evans +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. + (struct quick_symbol_functions) : + New argument expansion_notify. All uses updated. + (expand_symtabs_matching): New argument expansion_notify. + All uses updated. + * symfile-debug.c (debug_qf_expand_symtabs_matching): + Also print expansion notify. + * symtab.c (expand_symtabs_matching_via_partial): Call + expansion_notify whenever a partial symbol table is expanded. + * dwarf2read.c (dw2_expand_symtabs_matching): Call + expansion_notify whenever a symbol table is instantiated. + +2015-01-31 Doug Evans + + * cli-out.c: #include completer.h, readline/readline.h. + (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions. + (cli_mld_flush, cld_mld_erase_entire_line): Ditto. + (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto. + * cli-out.h (cli_display_match_list): Declare. + * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros. + (ELLIPSIS_LEN): Ditto. + (gdb_get_y_or_n, gdb_display_match_list_pager): New functions. + (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto. + (gdb_fnprint, gdb_print_filename): Ditto. + (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto. + (gdb_display_match_list): Ditto. + * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs. + (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto. + (mld_beep_ftype, mld_read_key_ftype): Ditto. + (match_list_displayer): New struct. + (gdb_display_match_list): Declare. + * top.c (init_main): Set rl_completion_display_matches_hook. + * tui/tui-io.c: #include completer.h. + (printable_part, PUTX, print_filename, get_y_or_n): Delete. + (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions. + (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto. + (tui_mld_getc, tui_mld_read_key): Ditto. + (tui_rl_display_match_list): Rewrite. + (tui_handle_resize_during_io): New arg for_completion. All callers + updated. + +2015-01-31 Doug Evans Add symbol lookup cache. * NEWS: Document new options and commands. @@ -35,6 +374,602 @@ print symbol-cache-statistics, flush-symbol-cache. Install new_objfile, free_objfile observers. +2015-01-31 Joel Brobecker + + PR symtab/17855 + * symfile.c (clear_symtab_users): Move call to breakpoint_re_set + to end. + +2015-01-31 Doug Evans + + * NEWS: Mention inlined scripts in .debug_gdb_scripts section. + * auto-load.c: #include ctype.h. + (struct auto_load_pspace_info): Replace member loaded_scripts with + new members loaded_script_files, loaded_script_texts. + (auto_load_pspace_data_cleanup): Update. + (init_loaded_scripts_info): Update. + (get_auto_load_pspace_data_for_loading): Update. + (maybe_add_script_file): Renamed from maybe_add_script. All callers + updated. + (maybe_add_script_text): New function. + (clear_section_scripts): Update. + (source_script_file, execute_script_contents): New functions. + (source_section_scripts): Add support for + SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT. + (print_scripts): New function. + (auto_load_info_scripts): Also print inlined scripts. + (maybe_print_unsupported_script_warning): Renamed from + unsupported_script_warning_print. All callers updated. + (maybe_print_script_not_found_warning): Renamed from + script_not_found_warning_print. All callers updated. + * extension-priv.h (struct extension_language_script_ops): New member + objfile_script_executor. + * extension.c (ext_lang_objfile_script_executor): New function. + * extension.h (objfile_script_executor_func): New typedef. + (ext_lang_objfile_script_executor): Declare. + * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare. + * guile/guile.c (guile_extension_script_ops): Update. + * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function. + * python/python.c (python_extension_script_ops): Update. + (gdbpy_execute_objfile_script): New function. + +2015-01-31 Eli Zaretskii + + * tui/tui-io.c (tui_expand_tabs): New function. + (tui_puts, tui_redisplay_readline): Expand TABs into the + appropriate number of spaces. + * tui/tui-regs.c: Include tui-io.h. + (tui_register_format): Call tui_expand_tabs to expand TABs into + the appropriate number of spaces. + * tui/tui-io.h: Add prototype for tui_expand_tabs. + +2015-01-30 Doug Evans + + * NEWS: "info source" command now display producer string if present. + * source.c (source_info): Print producer string if present. + +2015-01-30 Simon Marchi + + * varobj.c (varobj_delete): Fix comment. + +2015-01-30 Simon Marchi + + * varobj.c (create_child): Modify comment. + +2015-01-30 Simon Marchi + + * ada-varobj.c (ada_number_of_children): Constify struct varobj * + parameter. + (ada_name_of_variable): Same. + (ada_path_expr_of_child): Same. + (ada_value_of_variable): Same. + (ada_value_is_changeable_p): Same. + (ada_value_has_mutated): Same. + * c-varobj.c (varobj_is_anonymous_child): Same. + (c_is_path_expr_parent): Same. + (c_number_of_children): Same. + (c_name_of_variable): Same. + (c_path_expr_of_child): Same. + (get_type): Same. + (c_value_of_variable): Same. + (cplus_number_of_children): Same. + (cplus_name_of_variable): Same. + (cplus_path_expr_of_child): Same. + (cplus_value_of_variable): Same. + * jv-varobj.c (java_number_of_children): Same. + (java_name_of_variable): Same. + (java_path_expr_of_child): Same. + (java_value_of_variable): Same. + * varobj.c (number_of_children): Same. + (name_of_variable): Same. + (is_root_p): Same. + (varobj_ensure_python_env): Same. + (varobj_get_objname): Same. + (varobj_get_expression): Same. + (varobj_get_display_format): Same. + (varobj_get_display_hint): Same. + (varobj_has_more): Same. + (varobj_get_thread_id): Same. + (varobj_get_frozen): Same. + (dynamic_varobj_has_child_method): Same. + (varobj_get_gdb_type): Same. + (is_path_expr_parent): Same. + (varobj_default_is_path_expr_parent): Same. + (varobj_get_language): Same. + (varobj_get_attributes): Same. + (varobj_is_dynamic_p): Same. + (varobj_get_child_range): Same. + (varobj_value_has_mutated): Same. + (varobj_get_value_type): Same. + (number_of_children): Same. + (name_of_variable): Same. + (check_scope): Same. + (varobj_editable_p): Same. + (varobj_value_is_changeable_p): Same. + (varobj_floating_p): Same. + (varobj_default_value_is_changeable_p): Same. + +2015-01-30 Simon Marchi + + * varobj.c (varobj_get_path_expr): Set var->path_expr. + * c-varobj.c (c_path_expr_of_child): Set local var instead of + child->path_expr. + (cplus_path_expr_of_child): Same. + +2015-01-30 Simon Marchi + + * mi-cmd-var.c (print_varobj): Free varobj_get_expression + result. + (mi_cmd_var_info_expression): Same. + * varobj.c (varobj_get_expression): Mention in the comment that + the result must by freed by the caller. + +2015-01-30 Simon Marchi + + * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of + varobj_get_type. + (varobj_update_one): Same. + * varobj.c (update_type_if_necessary): Free curr_type_str and + new_type_str. + (varobj_get_type): Specify in comment that the result needs to be + freed by the caller. + +2015-01-29 Doug Evans + + PR symtab/17890 + * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4. + +2015-01-25 Mark Wielaard + + * dwarf2read.c (checkproducer): Call producer_is_gcc. + * utils.c (producer_is_gcc_ge_4): Likewise. + (producer_is_gcc): New function. + * utils.h (producer_is_gcc): New declaration. + +2015-01-29 Joel Brobecker + + * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum + kind. + * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr" + parameter by "addr_stack" parameter. + (resolve_dynamic_range): Replace "addr" parameter by + "stack_addr" parameter. Update function documentation. + Update code accordingly. + (resolve_dynamic_array, resolve_dynamic_union) + (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise. + (resolve_dynamic_type): Update code, following the changes made + to resolve_dynamic_type_internal's interface. + * dwarf2loc.h (struct property_addr_info): New. + (dwarf2_evaluate_property): Replace "address" parameter + by "addr_stack" parameter. Adjust function documentation. + (struct dwarf2_offset_baton): New. + (struct dwarf2_property_baton): Update documentation of + field "referenced_type" to be more general. New field + "offset_info" in union data field. + * dwarf2loc.c (dwarf2_evaluate_property): Replace "address" + parameter by "addr_stack" parameter. Adjust code accordingly. + Add support for PROP_ADDR_OFFSET properties. + * dwarf2read.c (attr_to_dynamic_prop): Add support for + DW_AT_data_member_location attributes as well. Use case + statements instead of if/else condition. + +2015-01-29 Joel Brobecker + + * ada-varobj.c (ada_varobj_get_array_number_of_children): + Return zero if PARENT_VALUE is NULL and parent_type's + range type is dynamic. + +2015-01-29 Joel Brobecker + + * gdbtypes.c (is_dynamic_type_internal) : Return + nonzero if the type's subtype is dynamic. + (resolve_dynamic_range): Also resolve the range's subtype. + +2015-01-29 Alexander Klimov (tiny patch) + + Pushed by Joel Brobecker . + * symfile.c (unmap_overlay_command): Initialize sec to NULL. + +2015-01-27 Doug Evans + + * NEWS: Mention gdb.Objfile.username. + * python/py-objfile.c (objfpy_get_username): New function. + (objfile_getset): Add "username". + +2015-01-24 Mark Wielaard + + * stack.c (return_command): Markup warning message with _. + +2015-01-24 Doug Evans + + * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete. + +2015-01-24 Jan Kratochvil + + Fix 100x slowdown regression on DWZ files. + * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash. + (struct line_header): Add offset and offset_in_dwz. + (dwarf_decode_lines): Add parameter decode_mapping to the declaration. + (free_line_header_voidp): New declaration. + (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New + functions. + (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller. + (handle_DW_AT_stmt_list): Use line_header_hash. + (free_line_header_voidp): New function. + (dwarf_decode_line_header): Initialize offset and offset_in_dwz. + (dwarf_decode_lines): New parameter decode_mapping, use it. + (dwarf2_free_objfile): Free line_header_hash. + +2015-01-23 Simon Marchi + + PR gdb/17416 + * valops.c (value_rtti_indirect_type): Catch exception thrown by + value_ind. + +2015-01-15 Mark Wielaard + + * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from + DW_AT_noreturn. + * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make + calling_convention an 8 bit bit field. + (TYPE_NO_RETURN): New macro. + * infcmd.c (finish_command): Query if function does not return + normally. + * stack.c (return_command): Likewise. + +2015-01-23 Pedro Alves + + * linux-nat.c (linux_is_async_p): New macro. + (linux_nat_is_async_p): + (linux_nat_terminal_inferior): Check whether the target can async + instead of whether it is already async. + (linux_nat_terminal_ours): Don't check whether the target is + async. + (linux_async_pipe): Use linux_is_async_p. + +2015-01-22 Jan Kratochvil + + * NEWS (Changes since GDB 7.9): Add 'thread apply all' option + '-ascending'. + * thread.c (tp_array_compar_ascending, tp_array_compar): New. + (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. + Sort tp_array using tp_array_compar. + (_initialize_thread): Extend thread_apply_all_command help. + +2015-01-22 Jan Kratochvil + + * corelow.c (core_open): Call also thread_command. + * gdbthread.h (thread_command): New prototype moved from ... + * thread.c (thread_command): ... here. + (thread_command): Make it global. + +2015-01-22 Pedro Alves + + * configure.ac [*mingw32*]: Check $curses_found instead of + $prefer_curses. + * configure: Regenerate. + * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and + HAVE_NCURSES_NCURSES_H checks. + +2015-01-22 Eli Zaretskii + + * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' + fails with the 1st arg NULL, try again with "unknown". Don't test + the "cup" capability: it isn't supported by the Windows port of + ncurses, but the Windows console driver is still capable of + supporting TUI. + +2015-01-22 Jan Kratochvil + + * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. + +2015-01-22 Eli Zaretskii + + * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. + (ALLDEPFILES): Remove irix5-nat.c. These two are part of the + reason that "make TAGS" is broken. + +2015-01-22 Chen Gang + + * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues + and check additional store instructions. + +2015-01-21 Wei-cheng Wang + + * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". + +2015-01-21 Wei-cheng Wang + + * ppc-linux-tdep.c (ppc_skip_trampoline_code, + ppc_canonicalize_syscall, ppc_linux_syscall_record, + ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. + * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. + * rs6000-tdep.c (rs6000_epilogue_frame_cache, + rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, + rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, + ppc_process_record_op19, ppc_process_record_op31, + ppc_process_record_op59, ppc_process_record_op60, + ppc_process_record_op63): Likewise. + +2015-01-20 Joel Brobecker + + * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) + (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of + strerror. + +2015-01-20 Wei-cheng Wang + + * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, + ppc_process_record_op31, ppc_process_record_op59, + ppc_process_record_op60, ppc_process_record_op63, + ppc_process_record): Fix -Wformat warning. + * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): + Remove unused variables. + +2015-01-20 Chen Gang + + * MAINTAINERS (Write After Approval): Add "Chen Gang". + +2015-01-19 Eli Zaretskii + + * configure.ac [*mingw32*]: Only add windows-termcap.o to + CONFIG_OBS if not building with a curses library. + * configure: Regenerate. + + * windows-termcap.c: Include defs.h. Make the whole body empty if + either one of HAVE_CURSES_H or HAVE_NCURSES_H or + HAVE_NCURSES_NCURSES_H is defined. + +2015-01-19 Joel Brobecker + + * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator + from end of line to start of next line. + +2015-01-17 Wei-cheng Wang + + * ppc-linux-tdep.c (ppc_skip_trampoline_code): + Scan PLT stub backward for reverse debugging. + * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. + +2015-01-17 Wei-cheng Wang + Ulrich Weigand + + * configure.tgt (powerpc*-*-linux): Add linux-record.o to + gdb_target_obs. + (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall + record. + (ppc_canonicalize_syscall, ppc_linux_syscall_record, + ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. + (ppc_linux_init_abi): Set process_record, process_record_signal. + * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and + ppc_linux_record_tdep to gdbarch_tdep. + (ppc_process_record): New declaration. + * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, + ppc_process_record_op19, ppc_process_record_op31, + ppc_process_record_op59, ppc_process_record_op60, + ppc_process_record_op63, ppc_process_record): New functions. + +2015-01-17 Wei-cheng Wang + + * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to + rs6000_in_function_epilogue_frame_p and add an argument + for frame_info. + (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, + rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): + New functions. + (rs6000_epilogue_frame_unwind): New. + (rs6000_gdbarch_init): Append epilogue unwinder. + +2015-01-16 Sergio Durigan Junior + + * nat/linux-personality.c: Replace "#ifndef + HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if + !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 + systems. + +2015-01-16 Eli Zaretskii + + * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New + functions. + (_initialize_tui_win) : + : Use tui_set_var_cmd as the "set" function. + (tui_set_tab_width_command): Fix the commentary. + + * tui/tui-win.h: Add prototype for tui_rehighlight_all. + + * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): + Doc fix. + (tui_set_tab_width_command): Delete and recreate the source and + the disassembly windows, to show the effect of the changed tab + size immediately. + + * tui/tui-data.h (LINE_PREFIX): Make shorter + (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for + "Thread NNNNN.XXXX" thread ID notation on Windows. + +2015-01-16 Jan Kratochvil + + Fix gcc-5 compilation. + * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. + +2015-01-15 Sergio Durigan Junior + + * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. + (linux-personality.o): New rule. + * common/common-defs.h: Include . + * config/aarch64/linux.mh (NATDEPFILES): Include + linux-personality.o. + * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. + * config/arm/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * config/i386/linux.mh (NATDEPFILES): Likewise. + * config/ia64/linux.mh (NATDEPFILES): Likewise. + * config/m32r/linux.mh (NATDEPFILES): Likewise. + * config/m68k/linux.mh (NATDEPFILES): Likewise. + * config/mips/linux.mh (NATDEPFILES): Likewise. + * config/pa/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/linux.mh (NATDEPFILES): Likewise. + * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. + * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. + * config/s390/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux64.mh (NATDEPFILES): Likewise. + * config/sparc/linux.mh (NATDEPFILES): Likewise. + * config/tilegx/linux.mh (NATDEPFILES): Likewise. + * config/xtensa/linux.mh (NATDEPFILES): Likewise. + * defs.h: Remove #include (moved to + common/common-defs.h). + * linux-nat.c: Include nat/linux-personality.h. Remove #include + ; do not define ADDR_NO_RANDOMIZE (moved to + nat/linux-personality.c). + (linux_nat_create_inferior): Remove code to disable address space + randomization (moved to nat/linux-personality.c). Create cleanup + to disable address space randomization. + * nat/linux-personality.c: New file. + * nat/linux-personality.h: Likewise. + +2015-01-15 Sergio Durigan Junior + + * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and + common/posix-strerror.c. + (posix-strerror.o): New rule. + (mingw-strerror.o): Likewise. + * common/common-utils.h (safe_strerror): Move prototype to here, + from utils.h. + * common/common.host: New file. + * common/mingw-strerror.c: Likewise. + * common/posix-strerror.c: Likewise. + * configure: Regenerated. + * configure.ac: Source common/common.host. Add variable + common_host_obs to gdb_host_obs. + * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and + gdb/common/posix-strerror.c when warning about the use of + strerror. + * mingw-hdep.c (safe_strerror): Remove definition; move it to + common/mingw-strerror.c. + * posix-hdep.c (safe_strerror): Remove definition; move it to + common/posix-hdep.c. + * utils.h (safe_strerror): Remove prototype; move to + common/common-utils.h. + +2015-01-15 Joel Brobecker + + GDB 7.8.2 released. + +2015-01-15 Joel Brobecker + + * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel + ___XA type if the array has already been fixed. + +2015-01-14 Yao Qi + + * Makefile.in (ppc-linux.o): New rule. + * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. + * configure.ac: AC_CHECK_FUNCS(getauxval). + * config.in: Re-generated. + * configure: Re-generated. + * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): + Declare. + * nat/ppc-linux.c: New file. + * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: + Call ppc64_64bit_inferior_p. + +2015-01-14 Yao Qi + + * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to + nat/ppc-linux.h. + (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. + (PPC_FEATURE_HAS_DFP): Likewise. + (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. + (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. + (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. + Include "nat/ppc-linux.h". + * nat/ppc-linux.h: New file. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. + +2015-01-14 Pedro Alves + + PR gdb/17525 + * breakpoint.c: Include "interps.h". + (bpstat_do_actions_1): Also check whether the interpreter is + async. + +2015-01-14 Pedro Alves + + PR cli/17828 + * infrun.c (reinstall_readline_callback_handler_cleanup): Don't + reinstall if the interpreter is sync. + +2015-01-13 Doug Evans + + * objfiles.c (objfile_filename): New function. + * objfiles.h (objfile_filename): Declare it. + (objfile_name): Add function comment. + * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the + bfd file name (which may be realpath'd), and the original name. + +2015-01-13 Joel Brobecker + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2015-01-13 Joel Brobecker + + GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): + * version.in: Bump version to 7.9.50.DATE-cvs. + +2015-01-13 Joel Brobecker + + * nat/linux-procfs.c (linux_proc_attach_tgid_threads): + Remove trailing new-line in argument of call to warning. + +2015-01-13 Joel Brobecker + + * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing + new-line in argument of call to "warning". + +2015-01-13 Joel Brobecker + + * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found + in static block, then try searching for primitive types. + +2015-01-12 Patrick Palka + + * top.h (gdb_add_history): Declare. + * top.c (command_count): New variable. + (gdb_add_history): New function. + (gdb_safe_append_history): New static function. + (quit_force): Call it. + (command_line_input): Use gdb_add_history instead of + add_history. + * event-top.c (command_line_handler): Likewise. + +2015-01-12 James Clarke (tiny patch) + + PR gdb/17046 + * darwin-nat.c: Replace #include by + #include. + +2015-01-11 Doug Evans + + * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. + +2015-01-11 Doug Evans + + PR gdb/15830 + * NEWS: The "maint demangle" command is renamed as "demangle". + * demangle.c: #include cli/cli-utils.h, language.h. + (demangle_command): New function. + (_initialize_demangle): Add new command "demangle". + * maint.c (maintenance_demangle): Stub out. + (_initialize_maint_cmds): Update help text for "maint demangle", + and mark as deprecated. + +2015-01-11 Mark Kettenis + + * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that + inferior_thread is a function. + 2015-01-09 Patrick Palka * Makefile.in (.y.c): Don't munge yacc's #line