llvm-project/llvm/lib/Object
Pavel Labath 6e0b1ce48e Object/minidump: Add support for the MemoryInfoList stream
Summary:
This patch adds the definitions of the constants and structures
necessary to interpret the MemoryInfoList minidump stream, as well as
the object::MinidumpFile interface to access the stream.

While the code is fairly simple, there is one important deviation from
the other minidump streams, which is worth calling out explicitly.
Unlike other "List" streams, the size of the records inside
MemoryInfoList stream is not known statically. Instead it is described
in the stream header. This makes it impossible to return
ArrayRef<MemoryInfo> from the accessor method, as it is done with other
streams. Instead, I create an iterator class, which can be parameterized
by the runtime size of the structure, and return
iterator_range<iterator> instead.

Reviewers: amccarth, jhenderson, clayborg

Subscribers: JosephTremoulet, zturner, markmentovai, lldb-commits, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68210

llvm-svn: 374051
2019-10-08 14:15:32 +00:00
..
Archive.cpp [Object] Uncapitalize an error message 2019-09-20 04:40:38 +00:00
ArchiveWriter.cpp [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00
Binary.cpp [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
CMakeLists.txt [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
COFFImportFile.cpp [llvm-dlltool] Respect NONAME keyword 2019-05-22 09:49:54 +00:00
COFFModuleDefinition.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
COFFObjectFile.cpp [COFF] Add a ResourceSectionRef method for getting resource contents 2019-08-30 06:55:49 +00:00
Decompressor.cpp Recommit r368812 "[llvm/Object] - Convert SectionRef::getName() to return Expected<>" 2019-08-14 11:10:11 +00:00
ELF.cpp [llvm-readobj][yaml2obj] Support SHT_LLVM_SYMPART, SHT_LLVM_PART_EHDR and SHT_LLVM_PART_PHDR 2019-09-06 00:53:28 +00:00
ELFObjectFile.cpp [ARM] VFPv2 only supports 16 D registers. 2019-09-17 21:42:38 +00:00
Error.cpp [Object] isNotObjectErrorInvalidFileType: simplify 2019-07-13 09:28:33 +00:00
IRObjectFile.cpp Recommit [Object] Change object::SectionRef::getContents() to return Expected<StringRef> 2019-05-16 13:24:04 +00:00
IRSymtab.cpp [ELF] Implement Dependent Libraries Feature 2019-05-17 03:44:15 +00:00
LLVMBuild.txt [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
MachOObjectFile.cpp [NFC] Add { } to silence compiler warning [-Wmissing-braces]. 2019-09-25 04:40:07 +00:00
MachOUniversal.cpp [Object] Extend MachOUniversalBinary::getObjectForArch 2019-09-19 00:02:12 +00:00
Minidump.cpp Object/minidump: Add support for the MemoryInfoList stream 2019-10-08 14:15:32 +00:00
ModuleSymbolTable.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Object.cpp [Object] Extend MachOUniversalBinary::getObjectForArch 2019-09-19 00:02:12 +00:00
ObjectFile.cpp ObjectFile makeTriple - silence static analyzer dyn_cast<COFFObjectFile> null dereference warning. NFCI. 2019-10-01 11:25:17 +00:00
RecordStreamer.cpp [AsmPrinter] Remove hidden flag -print-schedule. 2019-02-04 12:51:26 +00:00
RecordStreamer.h [AsmPrinter] Remove hidden flag -print-schedule. 2019-02-04 12:51:26 +00:00
RelocationResolver.cpp Support for 64-bit PC-relative relocations for X86_64 2019-09-21 01:37:14 +00:00
SymbolSize.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SymbolicFile.cpp [BinaryFormat] Teach identify_magic about Tapi files. 2019-08-21 21:00:16 +00:00
TapiFile.cpp [TextAPI] Arch&Platform to Target 2019-09-20 14:32:34 +00:00
TapiUniversal.cpp [Object] Add tapi files to object 2019-08-21 23:30:53 +00:00
WasmObjectFile.cpp [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
WindowsMachineFlag.cpp Share /machine: handling code with llvm-cvtres too 2019-06-12 11:32:43 +00:00
WindowsResource.cpp [LLD] [COFF] Implement MinGW default manifest handling 2019-09-04 20:34:00 +00:00
XCOFFObjectFile.cpp [XCOFF][AIX] Generate symbol table entries with llvm-readobj 2019-08-27 18:54:46 +00:00