#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugAddr.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
#include "llvm/DebugInfo/DWARF/DWARFSection.h"
#include "llvm/ObjectYAML/DWARFYAML.h"
#include <algorithm>
#include <optional>
usingnamespacellvm;
Error dumpDebugAbbrev(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
Error dumpDebugAddr(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
Error dumpDebugStrings(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
Error dumpDebugARanges(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
Error dumpDebugRanges(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
static std::optional<DWARFYAML::PubSection>
dumpPubSection(const DWARFContext &DCtx, const DWARFSection &Section,
bool IsGNUStyle) { … }
void dumpDebugPubSections(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
void dumpDebugInfo(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }
bool dumpFileEntry(DataExtractor &Data, uint64_t &Offset,
DWARFYAML::File &File) { … }
void dumpDebugLines(DWARFContext &DCtx, DWARFYAML::Data &Y) { … }