Fix another build failure in tui-selftests.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 85607bbad43d86255494a8c0febd8161e41a3c5b..8837a23888142ed3e5e6f60efebd45b7b58f38cf 100644 (file)
@@ -1,3 +1,58 @@
+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
This page took 0.028223 seconds and 4 git commands to generate.