9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_MINIDUMPPARSER_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_MINIDUMPPARSER_H
20#include "llvm/ADT/ArrayRef.h"
21#include "llvm/ADT/DenseMap.h"
22#include "llvm/ADT/StringRef.h"
23#include "llvm/Object/Minidump.h"
30#include <unordered_map>
52 static llvm::Expected<MinidumpParser>
55 llvm::ArrayRef<uint8_t>
GetData();
57 llvm::ArrayRef<uint8_t>
GetStream(StreamType stream_type);
63 llvm::ArrayRef<uint8_t>
GetThreadContext(
const LocationDescriptor &location);
75 std::optional<lldb::pid_t>
GetPid();
104 std::unique_ptr<llvm::object::MinidumpFile> file);
107 std::unique_ptr<llvm::object::MinidumpFile>
m_file;
An architecture specification class.
std::pair< MemoryRegionInfos, bool > BuildMemoryRegions()
Returns a list of memory regions and a flag indicating whether the list is complete (includes all reg...
llvm::ArrayRef< minidump::Module > GetModuleList()
llvm::object::MinidumpFile & GetMinidumpFile()
ArchSpec GetArchitecture()
llvm::ArrayRef< uint8_t > GetData()
static MemoryRegionInfo GetMemoryRegionInfo(const MemoryRegionInfos ®ions, lldb::addr_t load_addr)
llvm::ArrayRef< uint8_t > GetStream(StreamType stream_type)
std::optional< lldb::pid_t > GetPid()
std::optional< Range > FindMemoryRange(lldb::addr_t addr)
const llvm::minidump::ExceptionStream * GetExceptionStream()
static llvm::Expected< MinidumpParser > Create(const lldb::DataBufferSP &data_buf_sp)
std::unique_ptr< llvm::object::MinidumpFile > m_file
std::vector< const minidump::Module * > GetFilteredModuleList()
lldb::DataBufferSP m_data_sp
std::optional< LinuxProcStatus > GetLinuxProcStatus()
llvm::ArrayRef< uint8_t > GetThreadContext(const LocationDescriptor &location)
llvm::ArrayRef< uint8_t > GetMemory(lldb::addr_t addr, size_t size)
llvm::ArrayRef< uint8_t > GetThreadContextWow64(const minidump::Thread &td)
UUID GetModuleUUID(const minidump::Module *module)
static llvm::StringRef GetStreamTypeAsString(StreamType stream_type)
llvm::ArrayRef< minidump::Thread > GetThreads()
const MinidumpMiscInfo * GetMiscInfo()
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
llvm::ArrayRef< uint8_t > range_ref
friend bool operator==(const Range &lhs, const Range &rhs)
Range(lldb::addr_t start, llvm::ArrayRef< uint8_t > range_ref)