aboutsummaryrefslogtreecommitdiff
path: root/gdb/aix-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r--gdb/aix-thread.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index 2fd6121..7007f76 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -854,14 +854,14 @@ sync_threadlists (pid_t pid)
thread exits and gets into a PST_UNKNOWN state. So this thread
will not run in the above for loop. Therefore the below for loop
is to manually delete such threads. */
- for (struct thread_info *it : all_threads_safe ())
+ for (thread_info &it : all_threads_safe ())
{
- aix_thread_info *priv = get_aix_thread_info (it);
+ aix_thread_info *priv = get_aix_thread_info (&it);
if (in_queue_threads.count (priv->pdtid) == 0
- && in_thread_list (proc_target, it->ptid)
- && pid == it->ptid.pid ())
+ && in_thread_list (proc_target, it.ptid)
+ && pid == it.ptid.pid ())
{
- delete_thread (it);
+ delete_thread (&it);
data->exited_threads.insert (priv->pdtid);
}
}
@@ -2062,9 +2062,7 @@ aix_thread_target::get_ada_task_ptid (long lwp, ULONGEST thread)
/* Module startup initialization function, automagically called by
init.c. */
-void _initialize_aix_thread ();
-void
-_initialize_aix_thread ()
+INIT_GDB_FILE (aix_thread)
{
/* Notice when object files get loaded and unloaded. */
gdb::observers::new_objfile.attach (new_objfile, "aix-thread");