#include "lldb/Utility/Broadcaster.h"
#include "lldb/Utility/Event.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Listener.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StreamString.h"
#include <algorithm>
#include <memory>
#include <utility>
#include <cassert>
#include <cstddef>
usingnamespacelldb;
usingnamespacelldb_private;
Broadcaster::Broadcaster(BroadcasterManagerSP manager_sp, std::string name)
: … { … }
Broadcaster::BroadcasterImpl::BroadcasterImpl(Broadcaster &broadcaster)
: … { … }
Broadcaster::~Broadcaster() { … }
void Broadcaster::CheckInWithManager() { … }
llvm::SmallVector<std::pair<ListenerSP, uint32_t &>, 4>
Broadcaster::BroadcasterImpl::GetListeners(uint32_t event_mask,
bool include_primary) { … }
bool Broadcaster::BroadcasterImpl::HasListeners(uint32_t event_mask) { … }
void Broadcaster::BroadcasterImpl::Clear() { … }
Broadcaster *Broadcaster::BroadcasterImpl::GetBroadcaster() { … }
bool Broadcaster::BroadcasterImpl::GetEventNames(
Stream &s, uint32_t event_mask, bool prefix_with_broadcaster_name) const { … }
void Broadcaster::AddInitialEventsToListener(
const lldb::ListenerSP &listener_sp, uint32_t requested_events) { … }
uint32_t
Broadcaster::BroadcasterImpl::AddListener(const lldb::ListenerSP &listener_sp,
uint32_t event_mask) { … }
bool Broadcaster::BroadcasterImpl::EventTypeHasListeners(uint32_t event_type) { … }
bool Broadcaster::BroadcasterImpl::RemoveListener(
lldb_private::Listener *listener, uint32_t event_mask) { … }
bool Broadcaster::BroadcasterImpl::RemoveListener(
const lldb::ListenerSP &listener_sp, uint32_t event_mask) { … }
void Broadcaster::BroadcasterImpl::BroadcastEvent(EventSP &event_sp) { … }
void Broadcaster::BroadcasterImpl::BroadcastEventIfUnique(EventSP &event_sp) { … }
void Broadcaster::BroadcasterImpl::PrivateBroadcastEvent(EventSP &event_sp,
bool unique) { … }
void Broadcaster::BroadcasterImpl::BroadcastEvent(uint32_t event_type) { … }
void Broadcaster::BroadcasterImpl::BroadcastEvent(
uint32_t event_type, const lldb::EventDataSP &event_data_sp) { … }
void Broadcaster::BroadcasterImpl::BroadcastEventIfUnique(uint32_t event_type) { … }
void Broadcaster::BroadcasterImpl::SetPrimaryListener(lldb::ListenerSP
listener_sp) { … }
bool Broadcaster::BroadcasterImpl::HijackBroadcaster(
const lldb::ListenerSP &listener_sp, uint32_t event_mask) { … }
bool Broadcaster::BroadcasterImpl::IsHijackedForEvent(uint32_t event_mask) { … }
const char *Broadcaster::BroadcasterImpl::GetHijackingListenerName() { … }
void Broadcaster::BroadcasterImpl::RestoreBroadcaster() { … }
llvm::StringRef Broadcaster::GetBroadcasterClass() const { … }
bool BroadcastEventSpec::operator<(const BroadcastEventSpec &rhs) const { … }
BroadcasterManager::BroadcasterManager() : … { … }
lldb::BroadcasterManagerSP BroadcasterManager::MakeBroadcasterManager() { … }
uint32_t BroadcasterManager::RegisterListenerForEventsNoLock(
const lldb::ListenerSP &listener_sp, const BroadcastEventSpec &event_spec) { … }
bool BroadcasterManager::UnregisterListenerForEventsNoLock(
const lldb::ListenerSP &listener_sp, const BroadcastEventSpec &event_spec) { … }
ListenerSP BroadcasterManager::GetListenerForEventSpec(
const BroadcastEventSpec &event_spec) const { … }
void BroadcasterManager::RemoveListener(Listener *listener) { … }
void BroadcasterManager::RemoveListener(const lldb::ListenerSP &listener_sp) { … }
void BroadcasterManager::SignUpListenersForBroadcaster(
Broadcaster &broadcaster) { … }
void BroadcasterManager::Clear() { … }