gdb: add destructor to lwp_info
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 28 Aug 2021 14:58:44 +0000 (10:58 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 28 Sep 2021 02:30:11 +0000 (22:30 -0400)
commit676362df181a39a5c58bba15f4f7524bfd58b88d
tree3c2c4c09993903dacbb08a5005dcb0fc3ec5235f
parentb0f6c8d24726d9bf4a5571a9c881eaa49e3129a3
gdb: add destructor to lwp_info

Replace the lwp_free function with a destructor.  Make lwp_info
non-copyable, since there is now a destructor (we wouldn't want an
lwp_info object getting copied and this->arch_private getting deleted
twice).

Change-Id: I09fcbe967e362566d3a06fed2abca2a9955570fa
gdb/linux-nat.c
gdb/linux-nat.h