23 : m_opaque_wp(rhs.m_opaque_wp) {
28 : m_opaque_wp(process_sp ? process_sp->GetUnixSignals() : nullptr) {}
31 : m_opaque_wp(platform_sp ? platform_sp->GetUnixSignals() : nullptr) {}
57 return this->
operator bool();
59SBUnixSignals::operator bool()
const {
62 return static_cast<bool>(GetSP());
68 if (
auto signals_sp =
GetSP())
77 if (
auto signals_sp =
GetSP())
78 return signals_sp->GetSignalNumberFromName(name);
86 if (
auto signals_sp =
GetSP())
87 return signals_sp->GetShouldSuppress(signo);
95 auto signals_sp =
GetSP();
98 return signals_sp->SetShouldSuppress(signo, value);
106 if (
auto signals_sp =
GetSP())
107 return signals_sp->GetShouldStop(signo);
115 auto signals_sp =
GetSP();
118 return signals_sp->SetShouldStop(signo, value);
126 if (
auto signals_sp =
GetSP())
127 return signals_sp->GetShouldNotify(signo);
135 auto signals_sp =
GetSP();
138 return signals_sp->SetShouldNotify(signo, value);
146 if (
auto signals_sp =
GetSP())
147 return signals_sp->GetNumSignals();
155 if (
auto signals_sp =
GetSP())
156 return signals_sp->GetSignalAtIndex(index);
#define LLDB_INSTRUMENT_VA(...)
lldb::UnixSignalsWP m_opaque_wp
int32_t GetSignalAtIndex(int32_t index) const
bool SetShouldNotify(int32_t signo, bool value)
const char * GetSignalAsCString(int32_t signo) const
int32_t GetSignalNumberFromName(const char *name) const
const SBUnixSignals & operator=(const lldb::SBUnixSignals &rhs)
bool SetShouldStop(int32_t signo, bool value)
bool SetShouldSuppress(int32_t signo, bool value)
int32_t GetNumSignals() const
void SetSP(const lldb::UnixSignalsSP &signals_sp)
bool GetShouldStop(int32_t signo) const
bool GetShouldNotify(int32_t signo) const
lldb::UnixSignalsSP GetSP() const
bool GetShouldSuppress(int32_t signo) const
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
#define LLDB_INVALID_SIGNAL_NUMBER
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::UnixSignals > UnixSignalsSP
std::shared_ptr< lldb_private::Platform > PlatformSP
std::shared_ptr< lldb_private::Process > ProcessSP