summaryrefslogtreecommitdiff
path: root/gnu/llvm/lldb/source/Target/ExecutionContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lldb/source/Target/ExecutionContext.cpp')
-rw-r--r--gnu/llvm/lldb/source/Target/ExecutionContext.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/gnu/llvm/lldb/source/Target/ExecutionContext.cpp b/gnu/llvm/lldb/source/Target/ExecutionContext.cpp
index b5cf13582af..a5288b81cd1 100644
--- a/gnu/llvm/lldb/source/Target/ExecutionContext.cpp
+++ b/gnu/llvm/lldb/source/Target/ExecutionContext.cpp
@@ -19,9 +19,7 @@ using namespace lldb_private;
ExecutionContext::ExecutionContext()
: m_target_sp(), m_process_sp(), m_thread_sp(), m_frame_sp() {}
-ExecutionContext::ExecutionContext(const ExecutionContext &rhs)
- : m_target_sp(rhs.m_target_sp), m_process_sp(rhs.m_process_sp),
- m_thread_sp(rhs.m_thread_sp), m_frame_sp(rhs.m_frame_sp) {}
+ExecutionContext::ExecutionContext(const ExecutionContext &rhs) = default;
ExecutionContext::ExecutionContext(const lldb::TargetSP &target_sp,
bool get_process)
@@ -398,28 +396,24 @@ ExecutionContextRef::ExecutionContextRef()
: m_target_wp(), m_process_wp(), m_thread_wp(), m_stack_id() {}
ExecutionContextRef::ExecutionContextRef(const ExecutionContext *exe_ctx)
- : m_target_wp(), m_process_wp(), m_thread_wp(),
- m_tid(LLDB_INVALID_THREAD_ID), m_stack_id() {
+ : m_target_wp(), m_process_wp(), m_thread_wp(), m_stack_id() {
if (exe_ctx)
*this = *exe_ctx;
}
ExecutionContextRef::ExecutionContextRef(const ExecutionContext &exe_ctx)
- : m_target_wp(), m_process_wp(), m_thread_wp(),
- m_tid(LLDB_INVALID_THREAD_ID), m_stack_id() {
+ : m_target_wp(), m_process_wp(), m_thread_wp(), m_stack_id() {
*this = exe_ctx;
}
ExecutionContextRef::ExecutionContextRef(Target *target, bool adopt_selected)
- : m_target_wp(), m_process_wp(), m_thread_wp(),
- m_tid(LLDB_INVALID_THREAD_ID), m_stack_id() {
+ : m_target_wp(), m_process_wp(), m_thread_wp(), m_stack_id() {
SetTargetPtr(target, adopt_selected);
}
ExecutionContextRef::ExecutionContextRef(const ExecutionContextRef &rhs)
- : m_target_wp(rhs.m_target_wp), m_process_wp(rhs.m_process_wp),
- m_thread_wp(rhs.m_thread_wp), m_tid(rhs.m_tid),
- m_stack_id(rhs.m_stack_id) {}
+
+ = default;
ExecutionContextRef &ExecutionContextRef::
operator=(const ExecutionContextRef &rhs) {