aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-06-22 18:20:42 +0100
committerPedro Alves <pedro@palves.net>2022-06-24 11:24:02 +0100
commit39b8a8090ed7e8967ceca3655aa5f3a2ae91219d (patch)
tree1fd51e49e5c6dcf14b239c92c7ab0501d325c2e2 /gdb/thread.c
parent54603ee2aeaf248220f0f440c322ff02e98cd403 (diff)
downloadgdb-39b8a8090ed7e8967ceca3655aa5f3a2ae91219d.zip
gdb-39b8a8090ed7e8967ceca3655aa5f3a2ae91219d.tar.gz
gdb-39b8a8090ed7e8967ceca3655aa5f3a2ae91219d.tar.bz2
Delete delete_thread_silent
delete_thread_silent is no longer used anywhere. Delete it. Change-Id: Iafcec12339861d5ab2e29c14d7b1f884c9e11c0f
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 378c5ee..f0ad82e 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -450,20 +450,16 @@ global_thread_step_over_chain_remove (struct thread_info *tp)
global_thread_step_over_list.erase (it);
}
-/* Delete the thread referenced by THR. If SILENT, don't notify
- the observer of this exit.
-
- THR must not be NULL or a failed assertion will be raised. */
+/* See gdbthread.h. */
-static void
-delete_thread_1 (thread_info *thr, bool silent)
+void
+delete_thread (thread_info *thr)
{
gdb_assert (thr != nullptr);
- threads_debug_printf ("deleting thread %s, silent = %d",
- thr->ptid.to_string ().c_str (), silent);
+ threads_debug_printf ("deleting thread %s", thr->ptid.to_string ().c_str ());
- set_thread_exited (thr, silent);
+ set_thread_exited (thr, false);
if (!thr->deletable ())
{
@@ -477,20 +473,6 @@ delete_thread_1 (thread_info *thr, bool silent)
delete thr;
}
-/* See gdbthread.h. */
-
-void
-delete_thread (thread_info *thread)
-{
- delete_thread_1 (thread, false /* not silent */);
-}
-
-void
-delete_thread_silent (thread_info *thread)
-{
- delete_thread_1 (thread, true /* silent */);
-}
-
struct thread_info *
find_thread_global_id (int global_id)
{