Fix another build failure in tui-selftests.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index ce8286af9801db9866fc1f88a148666e2ca2e022..8837a23888142ed3e5e6f60efebd45b7b58f38cf 100644 (file)
@@ -1,3 +1,256 @@
+2019-12-04  Tom Tromey  <tromey@adacore.com>
+
+       * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
+
+2019-12-04  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (process_structure_scope): Initialize
+       "discr_offset".
+
+2019-12-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
+       add it into the search spec.
+       (parse_max_results_option): New function.
+       (mi_info_functions_or_variables): Parse -max-results flag and pass
+       it to mi_symbol_info.
+       (mi_cmd_symbol_info_modules): Likewise.
+       (mi_cmd_symbol_info_types): Likewise.
+       * symtab.c (global_symbol_searcher::add_matching_symbols): Change
+       return type to bool, change result container into a set, and don't
+       add new results if we have enough already.
+       (global_symbol_searcher::add_matching_msymbols): Change return
+       type to bool, and don't add new results if we have enough already.
+       (sort_search_symbols_remove_dups): Delete.
+       (global_symbol_searcher::search): Early exit from search loop when
+       we have enough results.  Use a std::set to collect the results
+       from calling add_matching_symbols.
+       * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
+       member function.
+       (global_symbol_searcher) <m_max_search_results>: New member
+       variable.
+       (global_symbol_searcher) <add_matching_symbols>: Update header
+       comment and change return type to bool.
+       (global_symbol_searcher) <add_matching_msymbols>: Update header
+       comment and change return type to bool.
+
+2019-12-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * symtab.c (symbol_search::compare_search_syms): Update header
+       comment.
+       (global_symbol_searcher::is_suitable_msymbol): New function.
+       (global_symbol_searcher::expand_symtabs): New function.
+       (global_symbol_searcher::add_matching_symbols): New function.
+       (global_symbol_searcher::add_matching_msymbols): New function.
+       (global_symbol_searcher::search): Move most of the content
+       into the new functions above, and call them as needed.
+       * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
+       function.
+       (global_symbol_searcher) <add_matching_symbols>: New member
+       function.
+       (global_symbol_searcher) <add_matching_msymbols>: New member
+       function.
+       (global_symbol_searcher) <is_suitable_msymbol>: New member
+       function.
+
+2019-12-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
+       -symbol-info-module-variables entries.
+       * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
+       (mi_cmd_symbol_info_module_variables): Declare.
+       * mi/mi-symbol-cmds.c
+       (module_symbol_search_iterator): New typedef.
+       (output_module_symbols_in_single_module_and_file): New function.
+       (output_module_symbols_in_single_module): New function.
+       (mi_info_module_functions_or_variables): New function.
+       (mi_cmd_symbol_info_module_functions): New function.
+       (mi_cmd_symbol_info_module_variables): New function.
+       * NEWS: Mention new MI command.
+
+2019-12-03  Christian Biesinger  <cbiesinger@google.com>
+
+       * bcache.c (hash): Remove.
+       (hash_continue): Remove.
+       * bcache.h (hash): Remove.
+       (hash_continue): Remove.
+       (struct bcache) <ctor>: Update.
+       * psymtab.c (psymbol_hash): Update.
+       * stabsread.c (hashname): Update.
+       * utils.h (fast_hash): Add an argument for a start value,
+       defaulting to zero.
+
+2019-12-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+       * symtab.c (symbol_cache_clear_slot):  Move close to cleared type.
+       (destroy_block_symbol_cache): New function.
+       (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
+       (resize_symbol_cache): Likewise.
+
+2019-12-02  Tom Tromey  <tom@tromey.com>
+
+       * unittests/tui-selftests.c (run_tests): Make conditional.
+       (_initialize_tui_selftest): Make conditional.
+
+2019-12-02  Christian Biesinger  <cbiesinger@google.com>
+
+       * aix-thread.c (debug_aix_thread): Change type to bool.
+
+2019-12-02  Luis Machado  <luis.machado@linaro.org>
+
+       * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
+
+2019-12-01  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (read_tag_string_type): Read the fields required to
+       make a dynamic string, and possibly create a dynamic range for the
+       string.
+       (attr_to_dynamic_prop): Setup is_reference based on the type of
+       attribute being processed.
+       * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
+       (resolve_dynamic_array): Rename to...
+       (resolve_dynamic_array_or_string): ...this, update header comment,
+       and accept TYPE_CODE_STRING.
+       (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
+
+2019-12-01  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
+       of its implementation from...
+       (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
+       the new function.
+
+2019-12-01  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * dwarf2read.c (read_subrange_type): Read bit and byte stride and
+       create a range with stride where appropriate.
+       * f-valprint.c: Include 'gdbarch.h'.
+       (f77_print_array_1): Take the stride into account when walking the
+       array.  Also convert the stride into addressable units.
+       * gdbtypes.c (create_range_type): Initialise the stride to
+       constant zero.
+       (create_range_type_with_stride): New function, initialise the
+       range as normal, and then setup the stride.
+       (has_static_range): Include the stride here.  Also change the
+       return type to bool.
+       (create_array_type_with_stride): Consider the range stride if the
+       array isn't given its own stride.
+       (resolve_dynamic_range): Resolve the stride if needed.
+       * gdbtypes.h (struct range_bounds) <stride>: New member variable.
+       (struct range_bounds) <flag_is_byte_stride>: New member variable.
+       (TYPE_BIT_STRIDE): Define.
+       (TYPE_ARRAY_BIT_STRIDE): Define.
+       (create_range_type_with_stride): Declare.
+       * valarith.c (value_subscripted_rvalue): Take range stride into
+       account when walking the array.
+
+2019-12-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
+       specially.
+
+2019-12-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
+       \0.
+       * unittests/tui-selftests.c: New file.
+       * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
+
+2019-12-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_enable): Call tui_update_variables earlier.
+
+2019-12-01  Tom Tromey  <tom@tromey.com>
+
+       * NEWS: Document new settings.
+       * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
+       * tui/tui-win.c (_initialize_tui_win): Add border style
+       observers.
+       * tui/tui-io.h (tui_apply_style): Declare.
+       * tui/tui-io.c (tui_apply_style): Rename from apply_style.  No
+       longer static.
+       (apply_ansi_escape, tui_set_reverse_mode): Update.
+       * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
+       Add "skip_intensity" parameter.
+       <changed>: New member.
+       <do_set_value>: Declare.
+       (tui_border_style, tui_active_border_style): Declare.
+       * cli/cli-style.c (tui_border_style, tui_active_border_style): New
+       globals.
+       (cli_style_option): Initialize "changed".
+       (cli_style_option::do_set_value): New function.
+       (cli_style_option::add_setshow_commands): Add "skip_intensity"
+       parameter.  Update.
+       (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
+       (_initialize_cli_style): Update.  Create TUI border style
+       commands.
+
+2019-12-01  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
+       parameter.
+       * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
+       parameter.
+       * tui/tui-win.h (compact_source): Declare.
+       * tui/tui-win.c (compact_source): New global.
+       (tui_set_compact_source, tui_show_compact_source): New functions.
+       (_initialize_tui_win): Add "compact-source" setting.
+       * tui/tui-source.c (tui_source_window::set_contents): Handle
+       compact_source setting.
+       * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
+       * NEWS: Document new setting.
+
+2019-11-30  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_add_field): Include field offset when
+       computing variant part length.
+
+2019-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+       * NEWS:  Mention define-prefix.  Tell that command names can now
+       contain a . character.
+
+2019-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * command.h (valid_cmd_char_p): Declare.
+       * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
+       the check of valid command char.
+       (find_command_name_length, valid_user_defined_cmd_name_p): Use
+       valid_cmd_char_p.
+       * cli/cli-script.c (validate_comname): Likewise.
+       * completer.c (gdb_completer_command_word_break_characters):
+       Do not remove . from the word break char, update comments.
+       (complete_line_internal_1): Use valid_cmd_char_p.
+       * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
+       * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
+
+2019-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * cli/cli-script.c (do_define_command): Ensure a redefined
+       prefix command is kept as a prefix command.
+       (define_prefix_command): New function.
+       (show_user_1): Report user defined prefixes.
+       (_initialize_cli_script):  Create the new 'define-prefix' command.
+       Add completers for 'define' and 'document'.
+       * top.c (execute_command):  If command is a user-defined prefix only
+       command, report the list of commands for this prefix command.
+
+2019-11-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * valops.c (find_oload_champ): Improve debug output.
+
+2019-11-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * valops.c (find_oload_champ): Print part of debug messages
+       before the badness vector is std::move'd.
+
+2019-11-28  Tom Tromey  <tom@tromey.com>
+
+       * value.c (creal_internal_fn): Fix comment.
+
+2019-11-28  Tom Tromey  <tom@tromey.com>
+
+       * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
+       flag_bound_evaluated>: Now unsigned.
+
 2019-11-28  Tom Tromey  <tom@tromey.com>
 
        * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
This page took 0.029485 seconds and 4 git commands to generate.