diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-08-21 22:06:34 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-08-21 22:06:34 +0000 |
commit | 0f7ad8d98f01dbec85f4def63961528a2aa83955 (patch) | |
tree | e5ba5211f4aeea0cefd37a9167fa0bb73c958f76 /lldb/source/Breakpoint/Watchpoint.cpp | |
parent | b95803795812b8a8ae16915875afa702f07fba96 (diff) | |
download | bcm5719-llvm-0f7ad8d98f01dbec85f4def63961528a2aa83955.tar.gz bcm5719-llvm-0f7ad8d98f01dbec85f4def63961528a2aa83955.zip |
rdar://problem/12144930
Watchpoint conditions were hitting watchpoint, smashing LLDB's stack.
Make sure watchpoint is properly disabled and subsequently enabled while performing watchpoint actions.
llvm-svn: 162322
Diffstat (limited to 'lldb/source/Breakpoint/Watchpoint.cpp')
-rw-r--r-- | lldb/source/Breakpoint/Watchpoint.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/Watchpoint.cpp b/lldb/source/Breakpoint/Watchpoint.cpp index a9fe4ee4a22..7c048fadf4a 100644 --- a/lldb/source/Breakpoint/Watchpoint.cpp +++ b/lldb/source/Breakpoint/Watchpoint.cpp @@ -313,7 +313,9 @@ Watchpoint::SetEnabled(bool enabled) if (!enabled) { SetHardwareIndex(LLDB_INVALID_INDEX32); - ClearSnapshots(); + // Don't clear the snapshots for now. + // Within StopInfo.cpp, we purposely do disable/enable watchpoint while performing watchpoint actions. + //ClearSnapshots(); } m_enabled = enabled; } |