forked from OSchip/llvm-project
Add the SBWatchpoint::GetError back, we have clients who use it.
llvm-svn: 158092
This commit is contained in:
parent
987bcf9462
commit
ef42a6fb1d
|
@ -32,6 +32,9 @@ public:
|
|||
bool
|
||||
IsValid() const;
|
||||
|
||||
SBError
|
||||
GetError();
|
||||
|
||||
watch_id_t
|
||||
GetID ();
|
||||
|
||||
|
|
|
@ -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 ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue