diff options
Diffstat (limited to 'libunwindstack/include/unwindstack/ElfInterface.h')
-rw-r--r-- | libunwindstack/include/unwindstack/ElfInterface.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libunwindstack/include/unwindstack/ElfInterface.h b/libunwindstack/include/unwindstack/ElfInterface.h index 5cfe74d..5d3cd5e 100644 --- a/libunwindstack/include/unwindstack/ElfInterface.h +++ b/libunwindstack/include/unwindstack/ElfInterface.h @@ -60,7 +60,8 @@ class ElfInterface { virtual bool GetFunctionName(uint64_t addr, uint64_t load_bias, std::string* name, uint64_t* offset) = 0; - virtual bool Step(uint64_t rel_pc, Regs* regs, Memory* process_memory, bool* finished); + virtual bool Step(uint64_t rel_pc, uint64_t load_bias, Regs* regs, Memory* process_memory, + bool* finished); Memory* CreateGnuDebugdataMemory(); @@ -68,6 +69,8 @@ class ElfInterface { const std::unordered_map<uint64_t, LoadInfo>& pt_loads() { return pt_loads_; } + void SetGnuDebugdataInterface(ElfInterface* interface) { gnu_debugdata_interface_ = interface; } + uint64_t dynamic_offset() { return dynamic_offset_; } uint64_t dynamic_size() { return dynamic_size_; } uint64_t eh_frame_hdr_offset() { return eh_frame_hdr_offset_; } @@ -134,6 +137,8 @@ class ElfInterface { std::unique_ptr<DwarfSection> eh_frame_; std::unique_ptr<DwarfSection> debug_frame_; + // The Elf object owns the gnu_debugdata interface object. + ElfInterface* gnu_debugdata_interface_ = nullptr; std::vector<Symbols*> symbols_; }; |