X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=255daa1cf8a6fbc05cc02c92de112e56f4624f42;hb=043c35779713a14e0916a1b3e31e006cd1270ee4;hp=42c91aaab97434437dfcd9e64058c31cfea06cbb;hpb=e700d1b279b26d4b7d86cfae70d2e022ee748068;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 42c91aaab97..255daa1cf8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,455 @@ +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. + (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. + * symtab.c (symbol_cache_key): New static global. + (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros. + (SYMBOL_LOOKUP_FAILED): New macro. + (symbol_cache_slot_state): New enum. + (block_symbol_cache): New struct. + (symbol_cache): New struct. + (new_symbol_cache_size, symbol_cache_size): New static globals. + (hash_symbol_entry, eq_symbol_entry): New functions. + (symbol_cache_byte_size, resize_symbol_cache): New functions. + (make_symbol_cache, free_symbol_cache): New functions. + (get_symbol_cache, symbol_cache_cleanup): New function. + (set_symbol_cache_size, set_symbol_cache_size_handler): New functions. + (symbol_cache_lookup, symbol_cache_clear_slot): New function. + (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions. + (symbol_cache_flush, symbol_cache_dump): New functions. + (maintenance_print_symbol_cache): New function. + (maintenance_flush_symbol_cache): New function. + (symbol_cache_stats): New function. + (maintenance_print_symbol_cache_statistics): New function. + (symtab_new_objfile_observer): New function. + (symtab_free_objfile_observer): New function. + (lookup_static_symbol, lookup_global_symbol): Use symbol cache. + (_initialize_symtab): Init symbol_cache_key. New parameter + maint symbol-cache-size. New maint commands print symbol-cache, + print symbol-cache-statistics, flush-symbol-cache. + Install new_objfile, free_objfile observers. + 2015-01-31 Joel Brobecker PR symtab/17855