summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-26 22:40:50 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-26 22:40:50 +0000
commit5d0434644c6eb732ffebc7b9a34671dee6b1deae (patch)
tree16ce6cf4b525af47dd59b2fa32be1697373fa74a /lldb/source/Target/Target.cpp
parent1db746afbf8c71c5f287722eb229007fc9aa189b (diff)
downloadbcm5719-llvm-5d0434644c6eb732ffebc7b9a34671dee6b1deae.tar.gz
bcm5719-llvm-5d0434644c6eb732ffebc7b9a34671dee6b1deae.zip
Add SB API class SBWatchpointLocation and some extra methods to the SBTarget class to
iterate on the available watchpoint locations and to perform watchpoint manipulations. I still need to export the SBWatchpointLocation class as well as the added watchpoint manipulation methods to the Python interface. And write test cases for them. llvm-svn: 140575
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 60831baae05..6a742c28e59 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -18,6 +18,7 @@
#include "lldb/Breakpoint/BreakpointResolverFileLine.h"
#include "lldb/Breakpoint/BreakpointResolverFileRegex.h"
#include "lldb/Breakpoint/BreakpointResolverName.h"
+#include "lldb/Breakpoint/WatchpointLocation.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Event.h"
#include "lldb/Core/Log.h"
@@ -439,6 +440,7 @@ Target::CreateWatchpointLocation(lldb::addr_t addr, size_t size, uint32_t type)
return wp_loc_sp;
}
new_loc->SetWatchpointType(type);
+ new_loc->SetTarget(this);
wp_loc_sp.reset(new_loc);
m_watchpoint_location_list.Add(wp_loc_sp);
}
OpenPOWER on IntegriCloud