diff options
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r-- | lldb/source/Target/Target.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index a1caed4b9c5..5fe1f5e08e0 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -64,6 +64,7 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch, const lldb::Plat m_internal_breakpoint_list (true), m_watchpoint_list (), m_process_sp (), + m_valid (true), m_search_filter_sp (), m_image_search_paths (ImageSearchPathsChanged, this), m_scratch_ast_context_ap (NULL), @@ -165,6 +166,7 @@ void Target::Destroy() { Mutex::Locker locker (m_mutex); + m_valid = false; DeleteCurrentProcess (); m_platform_sp.reset(); m_arch.Clear(); |