gdb: Split print_symbol_info into two parts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 7c4e2b845827547c0e56d9cafa5e2c765660203e..63e0519c547c7eda7ce0eecc32eb1bb4f40d82a3 100644 (file)
@@ -1,3 +1,94 @@
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * symtab.c (symbol_to_info_string): New function, most content
+       moved from print_symbol_info, but updated to return a std::string.
+       (print_symbol_info): Update to use symbol_to_info_string and print
+       returned string.
+       * symtab.h (symbol_to_info_string): Declare new function.
+
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * python/python.c (gdbpy_rbreak): Convert to using
+       global_symbol_searcher.
+       * symtab.c (file_matches): Convert return type to bool, change
+       file list to std::vector, update header comment.
+       (search_symbols): Rename to...
+       (global_symbol_searcher::search): ...this and update now its
+       a member function of global_symbol_searcher.  Take account of the
+       changes to file_matches.
+       (symtab_symbol_info): Convert to using global_symbol_searcher.
+       (rbreak_command): Likewise.
+       (search_module_symbols): Likewise.
+       * symtab.h (enum symbol_search): Update comment.
+       (search_symbols): Remove declaration.
+       (class global_symbol_searcher): New class.
+
+2019-11-26  Tom Tromey  <tromey@adacore.com>
+
+       * cp-support.c (_initialize_cp_support): Conditionally initialize
+       gdb_demangle_attempt_core_dump.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * python/py-function.c (fnpy_init): Update.
+       * value.h (add_internal_function): Adjust declaration.
+       * value.c (function_destroyer): Remove.
+       (do_add_internal_function): Don't set destroyer or copy name.
+       (add_internal_function): Take unique_xmalloc_ptr<char> for name.
+       Set name_allocated.
+       * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
+       (cmdpy_init): Set name_allocated.
+       * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
+       member.
+       (~cmd_list_element): Free "name" if needed.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * value.h (add_internal_function): Add new overload.  Move
+       documentation from value.h.
+       * value.c (do_add_internal_function): New function.
+       (add_internal_function): Use it.  Add new overload.
+       (function_destroyer): Don't free doc.
+       * python/py-function.c (fnpy_init): Update.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
+       (cmdpy_init): Set "doc_allocated".
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
+       name of worker thread.
+       * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
+       pthread_setname_np.
+       * configure, config.in: Rebuild.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * python/python.c (class gdbpy_gil): New.
+       (struct gdbpy_event): Add constructor, destructor, operator().
+       (gdbpy_post_event): Use run_on_main_thread.
+       (gdbpy_initialize_events): Remove.
+       (do_start_initialization): Update.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * NEWS: Add entry.
+       * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
+       commands.  Call update_thread_pool_size.
+       (update_thread_pool_size, maintenance_set_worker_threads): New
+       functions.
+       (n_worker_threads): New global.
+
+2019-11-26  Christian Biesinger  <cbiesinger@google.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * minsyms.c (minimal_symbol_reader::install): Use
+       parallel_for_each.
+       * gdbsupport/parallel-for.h: New file.
+       * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
+
 2019-11-26  Christian Biesinger  <cbiesinger@google.com>
            Tom Tromey  <tom@tromey.com>
 
This page took 0.026737 seconds and 4 git commands to generate.