[Lldb-commits] [lldb] r139673 - /lldb/trunk/source/Target/Target.cpp

Johnny Chen johnny.chen at apple.com
Tue Sep 13 17:26:03 PDT 2011


Author: johnny
Date: Tue Sep 13 19:26:03 2011
New Revision: 139673

URL: http://llvm.org/viewvc/llvm-project?rev=139673&view=rev
Log:
Add comments.

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=139673&r1=139672&r2=139673&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Tue Sep 13 19:26:03 2011
@@ -328,7 +328,8 @@
     return bp_sp;
 }
 
-// See also WatchpointLocation::SetWatchpointType() and OptionGroupWatchpoint::WatchType.
+// See also WatchpointLocation::SetWatchpointType(uint32_t type) and
+// the OptionGroupWatchpoint::WatchType enum type.
 WatchpointLocationSP
 Target::CreateWatchpointLocation(lldb::addr_t addr, size_t size, uint32_t type)
 {
@@ -341,6 +342,9 @@
     if (size == 0)
         return wp_loc_sp;
 
+    // Currently we only support one watchpoint location per address, with total
+    // number of watchpoint locations limited by the hardware which the inferior
+    // is running on.
     WatchpointLocationSP matched_sp = m_watchpoint_location_list.FindByAddress(addr);
     if (matched_sp)
     {





More information about the lldb-commits mailing list