16using namespace minidump;
38std::optional<LinuxProcStatus>
42 llvm::StringRef(
reinterpret_cast<const char *
>(data.data()), data.size());
43 data = data.drop_front(data.size());
45 llvm::SmallVector<llvm::StringRef, 0> lines;
48 for (
auto line : lines) {
49 if (line.consume_front(
"Pid:")) {
51 if (!line.getAsInteger(10, result.
pid))
static llvm::raw_ostream & error(Stream &strm)
lldb::pid_t GetPid() const
static std::optional< LinuxProcStatus > Parse(llvm::ArrayRef< uint8_t > &data)
llvm::StringRef proc_status
Status consumeObject(llvm::ArrayRef< uint8_t > &Buffer, const T *&Object)
A class that represents a running process on the host machine.
llvm::support::ulittle32_t process_id
llvm::support::ulittle32_t flags1
static const MinidumpMiscInfo * Parse(llvm::ArrayRef< uint8_t > &data)
std::optional< lldb::pid_t > GetPid() const