9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_MINIDUMPPARSER_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_MINIDUMPPARSER_H
21#include "llvm/ADT/ArrayRef.h"
22#include "llvm/ADT/DenseMap.h"
23#include "llvm/ADT/StringRef.h"
24#include "llvm/Object/Minidump.h"
31#include <unordered_map>
63 llvm::object::MinidumpFile::FallibleMemory64Iterator;
65 llvm::object::MinidumpFile::ExceptionStreamsIterator;
69 static llvm::Expected<MinidumpParser>
72 llvm::ArrayRef<uint8_t>
GetData();
74 llvm::ArrayRef<uint8_t>
GetStream(StreamType stream_type);
75 std::optional<llvm::ArrayRef<uint8_t>>
GetRawStream(StreamType stream_type);
81 llvm::ArrayRef<uint8_t>
GetThreadContext(
const LocationDescriptor &location);
93 std::optional<lldb::pid_t>
GetPid();
114 llvm::iterator_range<FallibleMemory64Iterator>
126 std::unique_ptr<llvm::object::MinidumpFile> file);
129 std::unique_ptr<llvm::object::MinidumpFile>
m_file;
An architecture specification class.
Represents UUID's of various sizes.
MinidumpParser(lldb::DataBufferSP data_sp, std::unique_ptr< llvm::object::MinidumpFile > file)
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)
MemoryRangeVector m_memory_ranges
llvm::ArrayRef< uint8_t > GetStream(StreamType stream_type)
std::optional< lldb::pid_t > GetPid()
std::optional< llvm::ArrayRef< uint8_t > > GetRawStream(StreamType stream_type)
llvm::iterator_range< ExceptionStreamsIterator > GetExceptionStreams()
std::optional< Range > FindMemoryRange(lldb::addr_t addr)
void PopulateMemoryRanges()
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()
llvm::iterator_range< FallibleMemory64Iterator > GetMemory64Iterator(llvm::Error &err)
lldb::DataBufferSP m_data_sp
std::optional< LinuxProcStatus > GetLinuxProcStatus()
llvm::ArrayRef< uint8_t > GetThreadContext(const LocationDescriptor &location)
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()
llvm::Expected< llvm::ArrayRef< uint8_t > > GetMemory(lldb::addr_t addr, size_t size)
const MinidumpMiscInfo * GetMiscInfo()
llvm::object::MinidumpFile::FallibleMemory64Iterator FallibleMemory64Iterator
llvm::object::MinidumpFile::ExceptionStreamsIterator ExceptionStreamsIterator
lldb_private::RangeDataVector< lldb::addr_t, lldb::addr_t, minidump::Range > MemoryRangeVector
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
friend bool operator<(const Range &lhs, const Range &rhs)
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)