Let commands free "name"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 440edfff2f828bb51a4fdce18bd55638ed15dc90..d2e9adf34305bc81ba6a3d305de95db42f913f19 100644 (file)
@@ -1,3 +1,308 @@
+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
+       static.
+       * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
+       * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/element_access/char/1.cc (test01):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/element_access/char/empty.cc (main):
+       Likewise.
+       * unittests/basic_string_view/element_access/char/front_back.cc
+       (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/inserters/char/2.cc (test05):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
+       (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
+       (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
+       Likewise.
+       * unittests/basic_string_view/operations/compare/char/1.cc
+       (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/compare/char/13650.cc
+       (test01): Likewise.
+       * unittests/basic_string_view/operations/copy/char/1.cc (test01):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/data/char/1.cc (test01):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/find/char/1.cc (test01):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/find/char/2.cc (test02):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/find/char/3.cc (test03):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/find/char/4.cc (main):
+       Likewise.
+       * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
+       Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operations/substr/char/1.cc
+       (test01): Likewise.
+       (main): Likewise.
+       * unittests/basic_string_view/operators/char/2.cc (main):
+       Likewise.
+       * unittests/optional/assignment/1.cc (test): Likewise.
+       * unittests/optional/assignment/2.cc (test): Likewise.
+       * unittests/optional/assignment/3.cc (test): Likewise.
+       * unittests/optional/assignment/4.cc (test): Likewise.
+       * unittests/optional/assignment/5.cc (test): Likewise.
+       * unittests/optional/assignment/6.cc (test): Likewise.
+       * unittests/optional/assignment/7.cc (test): Likewise.
+       * unittests/optional/cons/copy.cc (test): Likewise.
+       * unittests/optional/cons/default.cc (test): Likewise.
+       * unittests/optional/cons/move.cc (test): Likewise.
+       * unittests/optional/cons/value.cc (test): Likewise.
+       * unittests/optional/in_place.cc (test): Likewise.
+       * unittests/optional/observers/1.cc (test): Likewise.
+       * unittests/optional/observers/2.cc (test): Likewise.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * tui-win.h (tui_set_var_cmd): Remove.
+       * tui-win.c (tui_set_var_cmd): Make static.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
+       rbreak_command_wrapper): Remove.
+       * symtab.c (rbreak_command_wrapper): Remove.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * inferior.h (info_terminal_command): Remove declaration.
+       * inflow.c (info_terminal_command): Make static.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * inferior.c (exit_inferior_silent): Remove.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dictionary.c (dict_empty, mdict_empty): Remove.
+       * dictionary.c (mdict_empty): Remove.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+        * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
+        (arc_insn_get_memory_offset): Likewise.
+        (arc_insn_dump): Likewise.
+        * cp-support.c (test_cp_symbol_name_matches): Likewise.
+        * csky-linux-tdep.c (csky_supply_fregset): Likewise.
+        * dictionary.c (dict_iterator_next): Likewise.
+        (dict_iter_match_first): Likewise.
+        (dict_iter_match_next): Likewise.
+        * f-lang.c (evaluate_subexp_f): Likewise.
+        * hppa-tdep.c (hppa_read_pc): Likewise.
+        * i386-tdep.c (i386_floatformat_for_type): Likewise.
+        * parse.c (write_exp_elt_msym): Likewise.
+        * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
+        * remote.c (remote_packet_size): Likewise.
+        (remote_notif_stop_parse): Likewise.
+        * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
+        * s12z-tdep.c (s12z_disassemble_info): Likewise.
+        * source.c (prepare_path_for_appending): Likewise.
+        * sparc64-linux-tdep.c
+        (sparc64_linux_handle_segmentation_fault); Likewise.
+        * stack.c (frame_selection_by_function_completer): Likewise.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * completer.c (set_gdb_completion_word_break_characters):
+       Remove.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * dwarf-index-write.c: Include dwarf-index-write.h.
+       * mi/mi-interp.c: Include mi/mi-interp.h.
+
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * aarch32-tdep.c: Include aarch32-tdep.h.
+       * aarch32-tdep.h: Forward-declare struct target_desc.
+
+2019-11-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
+       strerror.
+       * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
+       * windows-nat.c (windows_nat_target::create_inferior): Likewise.
+
+2019-11-25  Tom de Vries  <tdevries@suse.de>
+
+       * contrib/words.sh: Add -c option.
+
 2019-11-25  Christian Biesinger  <cbiesinger@google.com>
 
        * solib.c (solib_find_1): Change int to bool.
This page took 0.031205 seconds and 4 git commands to generate.