10 #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBFILE_H
11 #define LLVM_DEBUGINFO_PDB_RAW_PDBFILE_H
30 class MappedBlockStream;
122 std::string FilePath;
125 std::unique_ptr<BinaryStream> Buffer;
127 std::vector<uint32_t> FpmPages;
130 std::unique_ptr<GlobalsStream> Globals;
131 std::unique_ptr<InfoStream> Info;
132 std::unique_ptr<DbiStream> Dbi;
133 std::unique_ptr<TpiStream> Tpi;
134 std::unique_ptr<TpiStream> Ipi;
135 std::unique_ptr<PublicsStream> Publics;
136 std::unique_ptr<SymbolStream> Symbols;
137 std::unique_ptr<msf::MappedBlockStream> DirectoryStream;
138 std::unique_ptr<msf::MappedBlockStream> StringTableStream;
139 std::unique_ptr<PDBStringTable> Strings;
Expected< PDBStringTable & > getStringTable()
uint32_t getNumDirectoryBytes() const
bool hasPDBSymbolStream()
PDBFile(StringRef Path, std::unique_ptr< BinaryStream > PdbFileBuffer, BumpPtrAllocator &Allocator)
ArrayRef< support::ulittle32_t > getDirectoryBlockArray() const
Expected< GlobalsStream & > getPDBGlobalsStream()
bool hasPDBPublicsStream()
uint32_t getBlockMapIndex() const
Expected< TpiStream & > getPDBTpiStream()
This file defines the MallocAllocator and BumpPtrAllocator interfaces.
uint32_t getFileSize() const
uint32_t getNumStreams() const override
Error setBlockData(uint32_t BlockIndex, uint32_t Offset, ArrayRef< uint8_t > Data) const override
Describes the layout of a stream in an MSF layout.
uint64_t getBlockMapOffset() const
StringRef getFilePath() const
ArrayRef< support::ulittle32_t > getStreamSizes() const
uint32_t getStreamByteSize(uint32_t StreamIndex) const override
uint32_t getBlockSize() const override
Tagged union holding either a T or a Error.
bool hasPDBDbiStream() const
uint32_t getPointerSize()
ArrayRef< uint32_t > getFpmPages() const
bool hasPDBIpiStream() const
BumpPtrAllocator & getAllocator()
Allocate memory in an ever growing pool, as if by bump-pointer.
Expected< SymbolStream & > getPDBSymbolStream()
Expected< TpiStream & > getPDBIpiStream()
const msf::MSFLayout & getMsfLayout() const
Expected< DbiStream & > getPDBDbiStream()
uint32_t getNumDirectoryBlocks() const
uint32_t getUnknown1() const
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
uint32_t getFreeBlockMapBlock() const
Expected< PublicsStream & > getPDBPublicsStream()
StringRef getFileDirectory() const
bool hasPDBTpiStream() const
ArrayRef< ArrayRef< support::ulittle32_t > > getStreamMap() const
BinaryStreamRef getMsfBuffer() const
std::vector< ArrayRef< support::ulittle32_t > > StreamMap
bool hasPDBGlobalsStream()
Expected< ArrayRef< uint8_t > > getBlockData(uint32_t BlockIndex, uint32_t NumBytes) const override
ArrayRef< support::ulittle32_t > StreamSizes
Expected< InfoStream & > getPDBInfoStream()
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
ArrayRef< support::ulittle32_t > getStreamBlockList(uint32_t StreamIndex) const override
uint32_t getBlockCount() const override
msf::MSFStreamLayout getStreamLayout(uint32_t StreamIdx) const