Pass unique_ptr to add_thread_with_info
authorTom Tromey <tom@tromey.com>
Thu, 10 Mar 2022 23:56:57 +0000 (16:56 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 10 Aug 2023 16:50:37 +0000 (10:50 -0600)
commitd0ffdf6482024331dc43d9c221c7afc5863a300b
tree22bc10e78fac4db876bbd5190011d5da0ee465dc
parent67bed49ec852aee39172fc867a89ec78c4903883
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.
gdb/aix-thread.c
gdb/darwin-nat.c
gdb/gdbthread.h
gdb/linux-thread-db.c
gdb/thread.c