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@polymtl.ca>
Mon, 17 Jan 2022 16:31:36 +0000 (11:31 -0500)
commitdc8f71408b556527929e956ba09d6e8ac4485485
treecc04bd22c398ce410a70278757a4a31bf4ecb23d
parent86d04cd3d4e44faa829a4405353b37946031db0f
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.024713 seconds and 4 git commands to generate.