Add cleanup of watchpoint locations during Target::DeleteCurrentProcess().
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139840 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index 607bb90..ca9e936 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -124,6 +124,7 @@
// clean up needs some help from the process.
m_breakpoint_list.ClearAllBreakpointSites();
m_internal_breakpoint_list.ClearAllBreakpointSites();
+ m_watchpoint_location_list.ClearAllWatchpointLocations();
m_process_sp.reset();
}
}