From ef42a6fb1dfd3f8386d65e784cec60e2dfce7319 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 6 Jun 2012 18:46:25 +0000 Subject: [PATCH] Add the SBWatchpoint::GetError back, we have clients who use it. llvm-svn: 158092 --- lldb/include/lldb/API/SBWatchpoint.h | 3 +++ lldb/source/API/SBWatchpoint.cpp | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/lldb/include/lldb/API/SBWatchpoint.h b/lldb/include/lldb/API/SBWatchpoint.h index 9d8d455ca376..d4f8d21a220b 100644 --- a/lldb/include/lldb/API/SBWatchpoint.h +++ b/lldb/include/lldb/API/SBWatchpoint.h @@ -32,6 +32,9 @@ public: bool IsValid() const; + SBError + GetError(); + watch_id_t GetID (); diff --git a/lldb/source/API/SBWatchpoint.cpp b/lldb/source/API/SBWatchpoint.cpp index 76ce57cccf75..594584c03918 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 () {