diff options
Diffstat (limited to 'thirdparty/raw_pdb/src/PDB_ModuleLineStream.cpp')
| -rw-r--r-- | thirdparty/raw_pdb/src/PDB_ModuleLineStream.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/thirdparty/raw_pdb/src/PDB_ModuleLineStream.cpp b/thirdparty/raw_pdb/src/PDB_ModuleLineStream.cpp new file mode 100644 index 000000000..201983ed6 --- /dev/null +++ b/thirdparty/raw_pdb/src/PDB_ModuleLineStream.cpp @@ -0,0 +1,31 @@ +// Copyright 2011-2022, Molecular Matters GmbH <[email protected]> +// See LICENSE.txt for licensing details (2-clause BSD License: https://opensource.org/licenses/BSD-2-Clause) + +#include "PDB_PCH.h" +#include "PDB_ModuleLineStream.h" +#include "PDB_RawFile.h" + + +// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ +PDB::ModuleLineStream::ModuleLineStream(void) PDB_NO_EXCEPT + : m_stream(), m_c13LineInfoOffset(0) +{ +} + + +// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ +PDB::ModuleLineStream::ModuleLineStream(const RawFile& file, uint16_t streamIndex, uint32_t streamSize, size_t c13LineInfoOffset) PDB_NO_EXCEPT + : m_stream(file.CreateMSFStream<CoalescedMSFStream>(streamIndex, streamSize)), m_c13LineInfoOffset(c13LineInfoOffset) +{ + // https://llvm.org/docs/PDB/ModiStream.html + // struct ModiStream { + // uint32_t Signature; + // uint8_t Symbols[SymbolSize - 4]; + // uint8_t C11LineInfo[C11Size]; + // uint8_t C13LineInfo[C13Size]; + // uint32_t GlobalRefsSize; + // uint8_t GlobalRefs[GlobalRefsSize]; + // }; +} |