|
LLVM
5.0.0
|
#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
| PDBFile::PDBFile | ( | StringRef | Path, |
| std::unique_ptr< BinaryStream > | PdbFileBuffer, | ||
| BumpPtrAllocator & | Allocator | ||
| ) |
Definition at line 42 of file PDBFile.cpp.
|
overridedefault |
|
inline |
Definition at line 103 of file PDBFile.h.
Referenced by llvm::pdb::TpiStream::reload().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 60 of file PDBFile.cpp.
References llvm::msf::SuperBlock::NumBlocks, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 99 of file PDBFile.cpp.
References llvm::msf::blockToOffset(), llvm::codeview::EC, and getBlockSize().
| uint32_t PDBFile::getBlockMapIndex | ( | ) | const |
Definition at line 68 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockMapAddr, and llvm::msf::MSFLayout::SB.
| uint64_t PDBFile::getBlockMapOffset | ( | ) | const |
Definition at line 79 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockMapAddr, llvm::msf::SuperBlock::BlockSize, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 54 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, and llvm::msf::MSFLayout::SB.
Referenced by getBlockData().
| ArrayRef< support::ulittle32_t > PDBFile::getDirectoryBlockArray | ( | ) | const |
Definition at line 229 of file PDBFile.cpp.
References llvm::msf::MSFLayout::DirectoryBlocks.
| StringRef PDBFile::getFileDirectory | ( | ) | const |
Definition at line 50 of file PDBFile.cpp.
References llvm::sys::path::parent_path().
| StringRef PDBFile::getFilePath | ( | ) | const |
Definition at line 48 of file PDBFile.cpp.
Referenced by llvm::pdb::NativeExeSymbol::getSymbolsFileName().
| uint32_t PDBFile::getFileSize | ( | ) | const |
Definition at line 97 of file PDBFile.cpp.
Referenced by parseStreamData().
| uint32_t PDBFile::getFreeBlockMapBlock | ( | ) | const |
Definition at line 56 of file PDBFile.cpp.
References llvm::msf::SuperBlock::FreeBlockMapBlock, and llvm::msf::MSFLayout::SB.
|
inline |
Definition at line 85 of file PDBFile.h.
Referenced by llvm::pdb::TpiStream::reload().
|
inline |
Definition at line 84 of file PDBFile.h.
Referenced by llvm::pdb::TpiStream::reload().
| uint32_t PDBFile::getNumDirectoryBlocks | ( | ) | const |
Definition at line 74 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, llvm::msf::bytesToBlocks(), llvm::msf::SuperBlock::NumDirectoryBytes, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
| uint32_t PDBFile::getNumDirectoryBytes | ( | ) | const |
Definition at line 64 of file PDBFile.cpp.
References llvm::msf::SuperBlock::NumDirectoryBytes, and llvm::msf::MSFLayout::SB.
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 84 of file PDBFile.cpp.
References llvm::ArrayRef< T >::size(), and llvm::msf::MSFLayout::StreamSizes.
Referenced by hasPDBDbiStream(), hasPDBGlobalsStream(), hasPDBInfoStream(), hasPDBIpiStream(), hasPDBPublicsStream(), hasPDBStringTable(), hasPDBSymbolStream(), hasPDBTpiStream(), and llvm::pdb::TpiStream::reload().
Definition at line 272 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamDBI.
Referenced by llvm::pdb::NativeExeSymbol::findChildren(), getPDBGlobalsStream(), getPDBPublicsStream(), getPDBSymbolStream(), getPointerSize(), llvm::pdb::NativeExeSymbol::hasCTypes(), hasPDBGlobalsStream(), hasPDBPublicsStream(), hasPDBSymbolStream(), and llvm::pdb::NativeExeSymbol::hasPrivateSymbols().
| Expected< GlobalsStream & > PDBFile::getPDBGlobalsStream | ( | ) |
Definition at line 241 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
| Expected< InfoStream & > PDBFile::getPDBInfoStream | ( | ) |
Definition at line 259 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamPDB.
Referenced by llvm::pdb::NativeExeSymbol::getAge(), llvm::pdb::NativeExeSymbol::getGuid(), getStringTable(), and hasPDBStringTable().
Definition at line 298 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamIPI.
| Expected< PublicsStream & > PDBFile::getPDBPublicsStream | ( | ) |
Definition at line 311 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
| Expected< SymbolStream & > PDBFile::getPDBSymbolStream | ( | ) |
Definition at line 330 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
Referenced by llvm::pdb::PublicsStream::getSymbolArray(), and llvm::pdb::PublicsStream::getSymbols().
Definition at line 285 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamTPI.
| uint32_t PDBFile::getPointerSize | ( | ) |
Definition at line 374 of file PDBFile.cpp.
References llvm::pdb::Amd64, getPDBDbiStream(), and Machine.
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 93 of file PDBFile.cpp.
References llvm::msf::MSFLayout::StreamMap.
Referenced by getStreamLayout().
Implements llvm::msf::IMSFFile.
Definition at line 88 of file PDBFile.cpp.
References llvm::msf::MSFLayout::StreamSizes.
Referenced by getStreamLayout(), and parseStreamData().
| MSFStreamLayout PDBFile::getStreamLayout | ( | uint32_t | StreamIdx | ) | const |
Definition at line 233 of file PDBFile.cpp.
References llvm::msf::MSFStreamLayout::Blocks, getStreamBlockList(), getStreamByteSize(), and llvm::msf::MSFStreamLayout::Length.
|
inline |
Definition at line 80 of file PDBFile.h.
References llvm::msf::MSFLayout::StreamMap.
|
inline |
Definition at line 77 of file PDBFile.h.
References llvm::msf::MSFLayout::StreamSizes.
| Expected< PDBStringTable & > PDBFile::getStringTable | ( | ) |
Definition at line 350 of file PDBFile.cpp.
References assert(), llvm::codeview::EC, getPDBInfoStream(), and N.
| uint32_t PDBFile::getUnknown1 | ( | ) | const |
Definition at line 72 of file PDBFile.cpp.
References llvm::msf::MSFLayout::SB, and llvm::msf::SuperBlock::Unknown1.
| bool PDBFile::hasPDBDbiStream | ( | ) | const |
Definition at line 384 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamDBI.
| bool PDBFile::hasPDBGlobalsStream | ( | ) |
Definition at line 386 of file PDBFile.cpp.
References llvm::consumeError(), getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBInfoStream | ( | ) |
Definition at line 396 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamPDB.
| bool PDBFile::hasPDBIpiStream | ( | ) | const |
Definition at line 398 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamIPI.
| bool PDBFile::hasPDBPublicsStream | ( | ) |
Definition at line 400 of file PDBFile.cpp.
References llvm::consumeError(), getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBStringTable | ( | ) |
Definition at line 418 of file PDBFile.cpp.
References getNumStreams(), and getPDBInfoStream().
| bool PDBFile::hasPDBSymbolStream | ( | ) |
Definition at line 409 of file PDBFile.cpp.
References getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBTpiStream | ( | ) | const |
Definition at line 416 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamTPI.
| Error PDBFile::parseFileHeaders | ( | ) |
Definition at line 115 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, llvm::codeview::Byte, llvm::consumeError(), llvm::pdb::corrupt_file, llvm::msf::MSFLayout::DirectoryBlocks, llvm::codeview::EC, llvm::msf::MSFLayout::FreePageMap, getBlockCount(), getBlockMapOffset(), llvm::msf::getFullFpmByteSize(), getNumDirectoryBlocks(), I, fuzzer::min(), llvm::msf::SuperBlock::NumBlocks, llvm::BinaryStreamReader::readArray(), llvm::BinaryStreamReader::readBytes(), llvm::BinaryStreamReader::readObject(), llvm::BitVector::resize(), llvm::msf::MSFLayout::SB, SB, llvm::BinaryStreamReader::setOffset(), llvm::Error::success(), and llvm::msf::validateSuperBlock().
| Error PDBFile::parseStreamData | ( | ) |
Definition at line 176 of file PDBFile.cpp.
References assert(), llvm::pdb::Block, llvm::msf::SuperBlock::BlockSize, llvm::BinaryStreamReader::bytesRemaining(), llvm::msf::bytesToBlocks(), llvm::pdb::corrupt_file, llvm::codeview::EC, getFileSize(), getStreamByteSize(), I, llvm::BinaryStreamReader::readArray(), llvm::BinaryStreamReader::readInteger(), llvm::msf::MSFLayout::SB, llvm::msf::MSFLayout::StreamMap, llvm::msf::MSFLayout::StreamSizes, and llvm::Error::success().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 109 of file PDBFile.cpp.
References llvm::pdb::not_writable.
1.8.6