LLVM 20.0.0git
|
A parsed .debug_frame or .eh_frame section. More...
#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
Public Member Functions | |
DWARFDebugFrame (Triple::ArchType Arch, bool IsEH=false, uint64_t EHFrameAddress=0) | |
~DWARFDebugFrame () | |
void | dump (raw_ostream &OS, DIDumpOptions DumpOpts, std::optional< uint64_t > Offset) const |
Dump the section data into the given stream. | |
Error | parse (DWARFDataExtractor Data) |
Parse the section from raw data. | |
bool | empty () const |
Return whether the section has any entries. | |
iterator | begin () const |
DWARF Frame entries accessors. | |
iterator | end () const |
iterator_range< iterator > | entries () const |
uint64_t | getEHFrameAddress () const |
A parsed .debug_frame or .eh_frame section.
Definition at line 667 of file DWARFDebugFrame.h.
DWARFDebugFrame::DWARFDebugFrame | ( | Triple::ArchType | Arch, |
bool | IsEH = false , |
||
uint64_t | EHFrameAddress = 0 |
||
) |
Definition at line 1052 of file DWARFDebugFrame.cpp.
|
default |
|
inline |
DWARF Frame entries accessors.
Definition at line 701 of file DWARFDebugFrame.h.
void DWARFDebugFrame::dump | ( | raw_ostream & | OS, |
DIDumpOptions | DumpOpts, | ||
std::optional< uint64_t > | Offset | ||
) | const |
Dump the section data into the given stream.
Definition at line 1276 of file DWARFDebugFrame.cpp.
References llvm::DIDumpOptions::IsEH, llvm::Offset, and OS.
|
inline |
Return whether the section has any entries.
Definition at line 698 of file DWARFDebugFrame.h.
|
inline |
Definition at line 702 of file DWARFDebugFrame.h.
|
inline |
Definition at line 703 of file DWARFDebugFrame.h.
|
inline |
Definition at line 707 of file DWARFDebugFrame.h.
Error DWARFDebugFrame::parse | ( | DWARFDataExtractor | Data | ) |
Parse the section from raw data.
Data
is assumed to contain the whole frame section contents to be parsed.
Definition at line 1068 of file DWARFDebugFrame.cpp.
References llvm::createStringError(), llvm::Data, llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_omit, llvm::dwarf::DWARF64, llvm::StringRef::empty(), llvm::Format, llvm::dwarf::CIE::getAugmentationString(), getCIEId(), llvm::dwarf::CIE::getFDEPointerEncoding(), llvm::dwarf::CIE::getLSDAPointerEncoding(), llvm::invalid_argument, llvm::Length, llvm::Offset, llvm::StringRef::size(), llvm::Error::success(), and llvm::Version.