summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-14 01:16:39 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-14 01:16:39 +0000
commitf5be9e37598f2dc5459f538f9211dd9a882c9f25 (patch)
tree1cc7f64c415ad310e7200f11b3465dff48f31fd5 /lldb/source/API/SBTarget.cpp
parent187de46132da36d69d49a1249729daaf1046ffc7 (diff)
downloadbcm5719-llvm-f5be9e37598f2dc5459f538f9211dd9a882c9f25.tar.gz
bcm5719-llvm-f5be9e37598f2dc5459f538f9211dd9a882c9f25.zip
Add a test case to exercise the newly added SB API:
lldb::SBWatchpoint SBTarget::WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write) llvm-svn: 141931
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r--lldb/source/API/SBTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 652d4705fea..d32215e274c 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -957,7 +957,7 @@ SBTarget::WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write)
Mutex::Locker api_locker (m_opaque_sp->GetAPIMutex());
uint32_t watch_type = (read ? LLDB_WATCH_TYPE_READ : 0) |
(write ? LLDB_WATCH_TYPE_WRITE : 0);
- WatchpointSP wp_sp = m_opaque_sp->CreateWatchpoint(addr, size, watch_type);
+ sb_watchpoint = m_opaque_sp->CreateWatchpoint(addr, size, watch_type);
}
if (log)
OpenPOWER on IntegriCloud