From f5be9e37598f2dc5459f538f9211dd9a882c9f25 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 14 Oct 2011 01:16:39 +0000 Subject: 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 --- lldb/source/API/SBTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/API/SBTarget.cpp') 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) -- cgit v1.2.3