diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-10-13 18:08:26 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-10-13 18:08:26 +0000 |
| commit | 1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293 (patch) | |
| tree | 272a2761ade581bba6c9641267cd4bd6902b85c7 /lldb/source/API/SBValue.cpp | |
| parent | d5a9a3afafce0b1f2519250bd47701eab68edc46 (diff) | |
| download | bcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.tar.gz bcm5719-llvm-1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293.zip | |
Cleaned up the SBWatchpoint public API.
llvm-svn: 141876
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 37a524495e7..8afd5641201 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -1097,3 +1097,31 @@ SBValue::GetData () return sb_data; } + +lldb::SBWatchpoint +SBValue::Watch (bool resolve_location, bool read, bool write) +{ + lldb::SBWatchpoint sb_watchpoint; + Target* target = m_opaque_sp->GetUpdatePoint().GetTargetSP().get(); + if (target) + { + Mutex::Locker api_locker (target->GetAPIMutex()); + // TODO: Johnny fill this in + } + return sb_watchpoint; +} + +lldb::SBWatchpoint +SBValue::WatchPointee (bool resolve_location, bool read, bool write) +{ + lldb::SBWatchpoint sb_watchpoint; + Target* target = m_opaque_sp->GetUpdatePoint().GetTargetSP().get(); + if (target) + { + Mutex::Locker api_locker (target->GetAPIMutex()); + // TODO: Johnny fill this in + } + return sb_watchpoint; +} + + |

