diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-09-14 00:26:03 +0000 | 
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-14 00:26:03 +0000 | 
| commit | ab9ee76ee511d269da0f6997653a62842475414f (patch) | |
| tree | 9c5a01c172adbe45441800cd54479df6c3f0a579 | |
| parent | 2c65eea947d9de6ac412a92891b158d85bcd6b01 (diff) | |
| download | bcm5719-llvm-ab9ee76ee511d269da0f6997653a62842475414f.tar.gz bcm5719-llvm-ab9ee76ee511d269da0f6997653a62842475414f.zip  | |
Add comments.
llvm-svn: 139673
| -rw-r--r-- | lldb/source/Target/Target.cpp | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 1a4a7b04741..11934e0a201 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -328,7 +328,8 @@ Target::CreateBreakpoint (SearchFilterSP &filter_sp, BreakpointResolverSP &resol      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 @@ Target::CreateWatchpointLocation(lldb::addr_t addr, size_t size, uint32_t type)      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)      {  | 

