diff options
author | Jim Ingham <jingham@apple.com> | 2012-06-06 18:46:25 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-06-06 18:46:25 +0000 |
commit | ef42a6fb1dfd3f8386d65e784cec60e2dfce7319 (patch) | |
tree | e832a3a9c8f47dfe206757746b932ff28a15f83c /lldb/source/API | |
parent | 987bcf9462a4858f8af5c080428347455a576848 (diff) | |
download | bcm5719-llvm-ef42a6fb1dfd3f8386d65e784cec60e2dfce7319.tar.gz bcm5719-llvm-ef42a6fb1dfd3f8386d65e784cec60e2dfce7319.zip |
Add the SBWatchpoint::GetError back, we have clients who use it.
llvm-svn: 158092
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBWatchpoint.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/API/SBWatchpoint.cpp b/lldb/source/API/SBWatchpoint.cpp index 76ce57cccf7..594584c0391 100644 --- a/lldb/source/API/SBWatchpoint.cpp +++ b/lldb/source/API/SBWatchpoint.cpp @@ -90,6 +90,18 @@ SBWatchpoint::IsValid() const return m_opaque_sp; } +SBError +SBWatchpoint::GetError () +{ + SBError sb_error; + lldb::WatchpointSP watchpoint_sp(GetSP()); + if (watchpoint_sp) + { + sb_error.SetError(watchpoint_sp->GetError()); + } + return sb_error; +} + int32_t SBWatchpoint::GetHardwareIndex () { |