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, 28 Oct 2021 20:11:02 +0000 (16:11 -0400)
commitfa912657bf3005d8a314613f86d7493d2da79e1c
tree07299e35b40788ed17ae4c089f4358e399b835f5
parentcf99bfd1cac1b475cbbd39a257979687e4fac621
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
This page took 0.023622 seconds and 4 git commands to generate.