File indexing completed on 2026-05-10 08:42:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef LLDB_API_SBUNIXSIGNALS_H
0011 #define LLDB_API_SBUNIXSIGNALS_H
0012
0013 #include "lldb/API/SBDefines.h"
0014
0015 namespace lldb {
0016
0017 class LLDB_API SBUnixSignals {
0018 public:
0019 SBUnixSignals();
0020
0021 SBUnixSignals(const lldb::SBUnixSignals &rhs);
0022
0023 ~SBUnixSignals();
0024
0025 const SBUnixSignals &operator=(const lldb::SBUnixSignals &rhs);
0026
0027 void Clear();
0028
0029 explicit operator bool() const;
0030
0031 bool IsValid() const;
0032
0033 const char *GetSignalAsCString(int32_t signo) const;
0034
0035 int32_t GetSignalNumberFromName(const char *name) const;
0036
0037 bool GetShouldSuppress(int32_t signo) const;
0038
0039 bool SetShouldSuppress(int32_t signo, bool value);
0040
0041 bool GetShouldStop(int32_t signo) const;
0042
0043 bool SetShouldStop(int32_t signo, bool value);
0044
0045 bool GetShouldNotify(int32_t signo) const;
0046
0047 bool SetShouldNotify(int32_t signo, bool value);
0048
0049 int32_t GetNumSignals() const;
0050
0051 int32_t GetSignalAtIndex(int32_t index) const;
0052
0053 protected:
0054 friend class SBProcess;
0055 friend class SBPlatform;
0056
0057 SBUnixSignals(lldb::ProcessSP &process_sp);
0058
0059 SBUnixSignals(lldb::PlatformSP &platform_sp);
0060
0061 lldb::UnixSignalsSP GetSP() const;
0062
0063 void SetSP(const lldb::UnixSignalsSP &signals_sp);
0064
0065 private:
0066 lldb::UnixSignalsWP m_opaque_wp;
0067 };
0068
0069 }
0070
0071 #endif