aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-08-28 10:58:44 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-09-27 22:30:11 -0400
commit676362df181a39a5c58bba15f4f7524bfd58b88d (patch)
tree3c2c4c09993903dacbb08a5005dcb0fc3ec5235f /gdb/linux-nat.h
parentb0f6c8d24726d9bf4a5571a9c881eaa49e3129a3 (diff)
downloadgdb-676362df181a39a5c58bba15f4f7524bfd58b88d.zip
gdb-676362df181a39a5c58bba15f4f7524bfd58b88d.tar.gz
gdb-676362df181a39a5c58bba15f4f7524bfd58b88d.tar.bz2
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
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r--gdb/linux-nat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index 050b804..b1b168d 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -208,6 +208,10 @@ struct lwp_info
waitstatus.kind = TARGET_WAITKIND_IGNORE;
}
+ ~lwp_info ();
+
+ DISABLE_COPY_AND_ASSIGN (lwp_info);
+
/* The process id of the LWP. This is a combination of the LWP id
and overall process id. */
ptid_t ptid;