17using namespace minidump;
20 llvm::MutableArrayRef<uint8_t> reg_dest) {
21 memcpy(reg_dest.data(), reg_src, reg_dest.size());
25 llvm::ArrayRef<uint8_t> source_data,
32 uint8_t *result_base = result_context_buf->GetBytes();
43 auto x86_32_Flag = MinidumpContext_x86_32_Flags::x86_32_Flag;
44 auto ControlFlag = MinidumpContext_x86_32_Flags::Control;
45 auto IntegerFlag = MinidumpContext_x86_32_Flags::Integer;
46 auto SegmentsFlag = MinidumpContext_x86_32_Flags::Segments;
52 if ((context_flags & ControlFlag) == ControlFlag) {
67 if ((context_flags & SegmentsFlag) == SegmentsFlag) {
78 if ((context_flags & IntegerFlag) == IntegerFlag) {
95 return result_context_buf;
static void writeRegister(const void *reg_src, llvm::MutableArrayRef< uint8_t > reg_dest)
A subclass of DataBuffer that stores a data buffer on the heap.
RegisterInfo interface to patch RegisterInfo structure for archs.
virtual size_t GetGPRSize() const =0
virtual const lldb_private::RegisterInfo * GetRegisterInfo() const =0
MinidumpContext_x86_32_Flags
Status consumeObject(llvm::ArrayRef< uint8_t > &Buffer, const T *&Object)
lldb::DataBufferSP ConvertMinidumpContext_x86_32(llvm::ArrayRef< uint8_t > source_data, RegisterInfoInterface *target_reg_interface)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
std::shared_ptr< lldb_private::WritableDataBuffer > WritableDataBufferSP
Every register is described in detail including its name, alternate name (optional),...
llvm::MutableArrayRef< uint8_t > mutable_data(uint8_t *context_base) const
llvm::support::ulittle32_t ebx
llvm::support::ulittle32_t cs
llvm::support::ulittle32_t eflags
llvm::support::ulittle32_t eip
llvm::support::ulittle32_t fs
llvm::support::ulittle32_t ebp
llvm::support::ulittle32_t esp
llvm::support::ulittle32_t ecx
llvm::support::ulittle32_t esi
llvm::support::ulittle32_t ss
llvm::support::ulittle32_t eax
llvm::support::ulittle32_t es
llvm::support::ulittle32_t context_flags
llvm::support::ulittle32_t edx
llvm::support::ulittle32_t ds
llvm::support::ulittle32_t edi
llvm::support::ulittle32_t gs