Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@139673 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Target.cpp b/source/Target/Target.cpp
index 1a4a7b0..11934e0 100644
--- a/source/Target/Target.cpp
+++ b/source/Target/Target.cpp
@@ -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)
{