2020-07-11 12:48:36 +02:00
|
|
|
/* PDB support for BFD. */
|
|
|
|
|
|
|
|
#include "sysdep.h"
|
|
|
|
#include "bfd.h"
|
2020-07-12 14:35:26 +02:00
|
|
|
#include "libbfd.h"
|
|
|
|
|
2020-07-31 13:55:53 +02:00
|
|
|
#include <memory>
|
|
|
|
#include <iostream>
|
|
|
|
#include <llvm/Support/ErrorOr.h>
|
|
|
|
#include <llvm/Support/Error.h>
|
|
|
|
#include <llvm/Support/MemoryBuffer.h>
|
|
|
|
#include <llvm/Support/BinaryStream.h>
|
|
|
|
#include <llvm/Support/Allocator.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/Native/PDBFile.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/Native/DbiStream.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/Native/NativeSession.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/IPDBSectionContrib.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/PDBSymbolCompiland.h>
|
|
|
|
#include <llvm/DebugInfo/PDB/IPDBTable.h>
|
|
|
|
#include <llvm/Object/COFF.h>
|
|
|
|
|
2020-07-12 17:06:40 +02:00
|
|
|
typedef struct pdb_data_struct {
|
2020-07-31 13:55:53 +02:00
|
|
|
std::unique_ptr<llvm::pdb::NativeSession> session;
|
2020-07-12 14:35:26 +02:00
|
|
|
} bfd_pdb_data_struct;
|