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>
Tue, 18 Jan 2022 18:14:20 +0000 (13:14 -0500)
commitc90b0ec156797e80a3590f8fb9a9f63abe0e94db
tree1f9b04b052d8a00603364b5c85f3790f6e444104
parentdde49593693ae8f10babd050d44ec7ca84cf66c0
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.025194 seconds and 4 git commands to generate.