Make two range_bounds bitfields unsigned
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index afb0b65c7955b3a9341cc946bf9aae62c3a7de87..c777def757b0c46f1db7d89d067f252fa9741bfb 100644 (file)
@@ -1,3 +1,282 @@
+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
+       declare.
+
+2019-11-28  Mihails Strasuns  <mihails.strasuns@intel.com>
+
+       * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
+       debug output.
+       * jit.c (jit_unregister_code): Add debug print to match
+       `jit_register_code`.
+
+2019-11-27  Christian Biesinger  <cbiesinger@google.com>
+
+       * NEWS: Mention the new multithreaded symbol loading.
+
+2019-11-27  Christian Biesinger  <cbiesinger@google.com>
+
+       * maint.c (n_worker_threads): Default to 0.
+       (worker_threads_disabled): New function.
+       * maint.h (worker_threads_disabled): New function.
+       * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
+       here if worker_threads_disabled () is true.
+       (minimal_symbol_reader::install): Skip all threading if
+       worker_threads_disabled () is true.
+
+2019-11-27  Christian Biesinger  <cbiesinger@google.com>
+
+       * minsyms.c (add_minsym_to_hash_table): Use a previously computed
+       hash code if possible.
+       (add_minsym_to_demangled_hash_table): Likewise.
+       (minimal_symbol_reader::install): Compute the hash codes for msymbol
+       on the background thread.
+       * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
+       Add these fields.
+
+2019-11-27  Christian Biesinger  <cbiesinger@google.com>
+
+       * minsyms.c (minimal_symbol_reader::install): Also compute the hash
+       of the mangled name on the background thread.
+       * symtab.c (symbol_set_names): Allow passing in the hash of the
+       linkage_name.
+       * symtab.h (symbol_set_names): Likewise.
+
+2019-11-27  Kevin Buettner  <kevinb@redhat.com>
+
+       * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
+       physnames are computed for inherited DIEs.
+
+2019-11-27  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
+       backslashes.
+       * cp-support.c: Remove unnecessary backslashes.
+
+2019-11-27  Christian Biesinger  <cbiesinger@google.com>
+
+       * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
+       with sym->set_linkage_name.
+       * coffread.c (coff_read_enum_type): Likewise.
+       * mdebugread.c (parse_symbol): Likewise.
+       * stabsread.c (patch_block_stabs): Likewise.
+       (define_symbol): Likewise.
+       (read_enum_type): Likewise.
+       (common_block_end): Likewise.
+       * symtab.h (struct general_symbol_info) <set_linkage_name>: New
+       function.
+       (SYMBOL_SET_LINKAGE_NAME): Remove.
+       * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
+       with sym->set_linkage_name.
+
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
+       * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
+       * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
+       * NEWS: Mention new MI command.
+
+2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
+       '-symbol-info-types', and '-symbol-info-variables'.
+       * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
+       (mi_cmd_symbol_info_types): Declare.
+       (mi_cmd_symbol_info_variables): Declare.
+       * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
+       (output_debug_symbol): New function.
+       (output_nondebug_symbol): New function.
+       (mi_symbol_info): New function.
+       (mi_info_functions_or_variables): New function.
+       (mi_cmd_symbol_info_functions): New function.
+       (mi_cmd_symbol_info_types): New function.
+       (mi_cmd_symbol_info_variables): New function.
+       * NEWS: Mention new commands.
+
+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>
+
+       * gdbsupport/thread-pool.h: New file.
+       * gdbsupport/thread-pool.c: New file.
+       * Makefile.in (COMMON_SFILES): Add thread-pool.c.
+       (HFILES_NO_SRCDIR): Add thread-pool.h.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * event-top.h (thread_local_segv_handler): Declare.
+       * event-top.c (thread_local_segv_handler): New global.
+       (install_handle_sigsegv, handle_sigsegv): New functions.
+       (async_init_signals): Install SIGSEGV handler.
+       * cp-support.c (gdb_demangle_jmp_buf): Change type.  Now
+       thread-local.
+       (report_failed_demangle): New function.
+       (gdb_demangle): Make core_dump_allowed atomic.  Remove signal
+       handler-setting code, instead use segv_handler.  Run warning code
+       on main thread.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * run-on-main-thread.c: New file.
+       * run-on-main-thread.h: New file.
+       * unittests/main-thread-selftests.c: New file.
+       * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
+       main-thread-selftests.c.
+       (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
+       (COMMON_SFILES): Add run-on-main-thread.c.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * main.c (setup_alternate_signal_stack): Remove.
+       (captured_main_1): Use gdb::alternate_signal_stack.
+       * gdbsupport/alt-stack.h: New file.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * gdbsupport/signals-state-save-restore.c (original_signal_mask):
+       Remove comment.
+       (save_original_signals_state, restore_original_signals_state): Use
+       gdb_sigmask.
+       * linux-nat.c (block_child_signals, restore_child_signals_mask)
+       (_initialize_linux_nat): Use gdb_sigmask.
+       * guile/guile.c (_initialize_guile): Use block_signals.
+       * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
+       * gdbsupport/gdb-sigmask.h: New file.
+       * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
+       * cp-support.c (gdb_demangle): Use gdb_sigmask.
+       * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
+       pthread_sigmask.
+       * configure, config.in: Rebuild.
+       * gdbsupport/block-signals.h: New file.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * acinclude.m4: Include ax_pthread.m4.
+       * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
+       (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
+       (CLIBS): Use PTHREAD_LIBS.
+       (aclocal_m4_deps): Add ax_pthread.m4.
+       * config.in, configure: Rebuild.
+       * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
+
+2019-11-26  Tom Tromey  <tom@tromey.com>
+
+       * symtab.h (struct minimal_symbol) <name_set>: New member.
+       * minsyms.c (minimal_symbol_reader::record_full): Copy name.
+       Don't call symbol_set_names.
+       (minimal_symbol_reader::install): Call symbol_set_names.
+
+2019-11-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
+       restore_active_ext_lang, as GIL is needed for (indirectly)
+       called PyOS_InterruptOccurred.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
+       definition.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * remote-sim.c (simulator_command): Make static, remove
+       declaration.
+
 2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
 
        * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
This page took 0.028863 seconds and 4 git commands to generate.