#include "ObjectFileCOFF.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Utility/LLDBLog.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatAdapters.h"
usingnamespacelldb;
usingnamespacelldb_private;
usingnamespacellvm;
usingnamespacellvm::object;
static bool IsCOFFObjectFile(const DataBufferSP &data) { … }
LLDB_PLUGIN_DEFINE(…)
char ObjectFileCOFF::ID;
ObjectFileCOFF::~ObjectFileCOFF() = default;
void ObjectFileCOFF::Initialize() { … }
void ObjectFileCOFF::Terminate() { … }
lldb_private::ObjectFile *
ObjectFileCOFF::CreateInstance(const ModuleSP &module_sp, DataBufferSP data_sp,
offset_t data_offset, const FileSpec *file,
offset_t file_offset, offset_t length) { … }
lldb_private::ObjectFile *ObjectFileCOFF::CreateMemoryInstance(
const ModuleSP &module_sp, WritableDataBufferSP data_sp,
const ProcessSP &process_sp, addr_t header) { … }
size_t ObjectFileCOFF::GetModuleSpecifications(
const FileSpec &file, DataBufferSP &data_sp, offset_t data_offset,
offset_t file_offset, offset_t length, ModuleSpecList &specs) { … }
void ObjectFileCOFF::Dump(Stream *stream) { … }
uint32_t ObjectFileCOFF::GetAddressByteSize() const { … }
ArchSpec ObjectFileCOFF::GetArchitecture() { … }
void ObjectFileCOFF::CreateSections(lldb_private::SectionList §ions) { … }
void ObjectFileCOFF::ParseSymtab(lldb_private::Symtab &symtab) { … }
bool ObjectFileCOFF::ParseHeader() { … }