#include "lldb/Target/UnixSignals.h"
#include "Plugins/Process/Utility/FreeBSDSignals.h"
#include "Plugins/Process/Utility/LinuxSignals.h"
#include "Plugins/Process/Utility/NetBSDSignals.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Utility/ArchSpec.h"
#include <optional>
#include <sstream>
usingnamespacelldb_private;
usingnamespacellvm;
UnixSignals::Signal::Signal(llvm::StringRef name, bool default_suppress,
bool default_stop, bool default_notify,
llvm::StringRef description, llvm::StringRef alias)
: … { … }
lldb::UnixSignalsSP UnixSignals::Create(const ArchSpec &arch) { … }
lldb::UnixSignalsSP UnixSignals::CreateForHost() { … }
UnixSignals::UnixSignals() { … }
UnixSignals::UnixSignals(const UnixSignals &rhs) : … { … }
UnixSignals::~UnixSignals() = default;
void UnixSignals::Reset() { … }
void UnixSignals::AddSignal(int signo, llvm::StringRef name,
bool default_suppress, bool default_stop,
bool default_notify, llvm::StringRef description,
llvm::StringRef alias) { … }
void UnixSignals::AddSignalCode(int signo, int code,
const llvm::StringLiteral description,
SignalCodePrintOption print_option) { … }
void UnixSignals::RemoveSignal(int signo) { … }
llvm::StringRef UnixSignals::GetSignalAsStringRef(int32_t signo) const { … }
std::string
UnixSignals::GetSignalDescription(int32_t signo, std::optional<int32_t> code,
std::optional<lldb::addr_t> addr,
std::optional<lldb::addr_t> lower,
std::optional<lldb::addr_t> upper) const { … }
bool UnixSignals::SignalIsValid(int32_t signo) const { … }
llvm::StringRef UnixSignals::GetShortName(llvm::StringRef name) const { … }
int32_t UnixSignals::GetSignalNumberFromName(const char *name) const { … }
int32_t UnixSignals::GetFirstSignalNumber() const { … }
int32_t UnixSignals::GetNextSignalNumber(int32_t current_signal) const { … }
bool UnixSignals::GetSignalInfo(int32_t signo, bool &should_suppress,
bool &should_stop, bool &should_notify) const { … }
bool UnixSignals::GetShouldSuppress(int signo) const { … }
bool UnixSignals::SetShouldSuppress(int signo, bool value) { … }
bool UnixSignals::SetShouldSuppress(const char *signal_name, bool value) { … }
bool UnixSignals::GetShouldStop(int signo) const { … }
bool UnixSignals::SetShouldStop(int signo, bool value) { … }
bool UnixSignals::SetShouldStop(const char *signal_name, bool value) { … }
bool UnixSignals::GetShouldNotify(int signo) const { … }
bool UnixSignals::SetShouldNotify(int signo, bool value) { … }
bool UnixSignals::SetShouldNotify(const char *signal_name, bool value) { … }
int32_t UnixSignals::GetNumSignals() const { … }
int32_t UnixSignals::GetSignalAtIndex(int32_t index) const { … }
uint64_t UnixSignals::GetVersion() const { … }
std::vector<int32_t>
UnixSignals::GetFilteredSignals(std::optional<bool> should_suppress,
std::optional<bool> should_stop,
std::optional<bool> should_notify) { … }
void UnixSignals::IncrementSignalHitCount(int signo) { … }
json::Value UnixSignals::GetHitCountStatistics() const { … }
void UnixSignals::Signal::Reset(bool reset_stop, bool reset_notify,
bool reset_suppress) { … }
bool UnixSignals::ResetSignal(int32_t signo, bool reset_stop,
bool reset_notify, bool reset_suppress) { … }