forked from Imagelibrary/binutils-gdb
Pass unique_ptr to add_thread_with_info
This changes add_thread_with_info to accept a unique_ptr, making it clear that it takes ownership of the passed-in pointer. I can't test the AIX or Darwin changes, but I think they are relatively obvious.
This commit is contained in:
@@ -1366,7 +1366,8 @@ record_thread (struct thread_db_info *info,
|
||||
thread with this PTID, but it's marked exited, then the kernel
|
||||
reused the tid of an old thread. */
|
||||
if (tp == NULL || tp->state == THREAD_EXITED)
|
||||
tp = add_thread_with_info (info->process_target, ptid, priv);
|
||||
tp = add_thread_with_info (info->process_target, ptid,
|
||||
private_thread_info_up (priv));
|
||||
else
|
||||
tp->priv.reset (priv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user