gdbserver: make thread_info non-POD
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 28 Sep 2021 20:02:29 +0000 (16:02 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Oct 2021 20:10:54 +0000 (16:10 -0400)
commitd2f325df0b54b0fed87f74c284f0a067b7233a14
tree7415bedf2283d7f1ce356275aa628463870a984e
parentadd3db9182348555b80ec850b58a6f423b0e6bc5
gdbserver: make thread_info non-POD

Add a constructor and a destructor.  The constructor takes care of the
initialization that happened in add_thread, while the destructor takes
care of the freeing that happened in free_one_thread.  This is needed to
make target_waitstatus non-POD, as thread_info contains a member of that
type.

Change-Id: I1db321b4de9dd233ede0d5c101950f1d6f1d13b7
gdbserver/gdbthread.h
gdbserver/inferiors.cc