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))
61std::pair<llvm::ArrayRef<MinidumpMemoryDescriptor64>, uint64_t>
63 const llvm::support::ulittle64_t *mem_ranges_count;
69 const llvm::support::ulittle64_t *base_rva;
74 return std::make_pair(
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.
static std::pair< llvm::ArrayRef< MinidumpMemoryDescriptor64 >, uint64_t > ParseMemory64List(llvm::ArrayRef< uint8_t > &data)
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