14#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
19using llvm::DWARFDebugArangeSet;
26 llvm::DWARFDataExtractor dwarf_data = debug_aranges_data.
GetAsLLVMDWARF();
29 DWARFDebugArangeSet set;
31 while (dwarf_data.isValidOffset(offset)) {
33 if (llvm::Error
error = set.extract(dwarf_data, &offset)) {
36 "DWARFDebugAranges::extract failed to extract "
37 ".debug_aranges set at offset {1:x}: {0}",
42 const uint64_t cu_offset = set.getCompileUnitDIEOffset();
43 for (
const auto &desc : set.descriptors()) {
56 for (
size_t i = 0; i < num_entries; ++i) {
59 LLDB_LOG(log,
"{0:x8}: [{1:x16} - {2:x16})", entry->
data,
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOG(log,...)
The LLDB_LOG* macros defined below are the way to emit log messages.
#define LLDB_LOG_ERROR(log, error,...)
#define LLDB_SCOPED_TIMER()
void CombineConsecutiveEntriesWithEqualData()
const Entry * GetEntryAtIndex(size_t i) const
void Append(const Entry &entry)
Entry * FindEntryThatContains(B addr)
void extract(const DWARFDataExtractor &debug_aranges_data)
dw_offset_t FindAddress(dw_addr_t address) const
void AppendRange(dw_offset_t cu_offset, dw_addr_t low_pc, dw_addr_t high_pc)
void Dump(Log *log) const
#define DW_INVALID_OFFSET
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
BaseType GetRangeBase() const
BaseType GetRangeEnd() const