[Lldb-commits] [lldb] r153477 - /lldb/trunk/source/Target/Target.cpp
Johnny Chen
johnny.chen at apple.com
Mon Mar 26 15:00:10 PDT 2012
Author: johnny
Date: Mon Mar 26 17:00:10 2012
New Revision: 153477
URL: http://llvm.org/viewvc/llvm-project?rev=153477&view=rev
Log:
If creation of watchpoint failed on the device, make sure the list maintained by the target reflects that by cleaning it up.
Modified:
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=153477&r1=153476&r2=153477&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Mon Mar 26 17:00:10 2012
@@ -508,8 +508,12 @@
rc.Success() ? "succeeded" : "failed",
wp_sp->GetID());
- if (rc.Fail())
+ if (rc.Fail()) {
+ // Enabling the watchpoint on the device side failed.
+ // Remove the said watchpoint from the list maintained by the target instance.
+ m_watchpoint_list.Remove(wp_sp->GetID());
wp_sp.reset();
+ }
else
m_last_created_watchpoint = wp_sp;
return wp_sp;
More information about the lldb-commits
mailing list