Add a general mechanism to wait on the debugger for Broadcasters of a given class/event bit set.

Use this to allow the lldb Driver to emit notifications for breakpoint modifications.
<rdar://problem/10619974>

llvm-svn: 150665
This commit is contained in:
Jim Ingham
2012-02-16 06:50:00 +00:00
parent 924f9a671d
commit 4bddaeb5ab
41 changed files with 763 additions and 28 deletions

View File

@@ -109,6 +109,16 @@ SBEvent::GetBroadcaster () const
return broadcaster;
}
const char *
SBEvent::GetBroadcasterClass () const
{
const Event *lldb_event = get();
if (lldb_event)
return lldb_event->GetBroadcaster()->GetBroadcasterClass().AsCString();
else
return "unknown class";
}
bool
SBEvent::BroadcasterMatchesPtr (const SBBroadcaster *broadcaster)
{