Add the SBWatchpoint::GetError back, we have clients who use it.

llvm-svn: 158092
This commit is contained in:
Jim Ingham 2012-06-06 18:46:25 +00:00
parent 987bcf9462
commit ef42a6fb1d
2 changed files with 15 additions and 0 deletions

View File

@ -32,6 +32,9 @@ public:
bool
IsValid() const;
SBError
GetError();
watch_id_t
GetID ();

View File

@ -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 ()
{