Loading libbacktrace/UnwindStackMap.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ std::string UnwindStackMap::GetFunctionName(uint64_t pc, uint64_t* offset) { return ""; } unwindstack::Elf* elf = map_info->GetElf(process_memory(), true); unwindstack::Elf* elf = map_info->GetElf(process_memory()); std::string name; uint64_t func_offset; Loading libunwindstack/Elf.cpp +2 −6 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ bool Elf::cache_enabled_; std::unordered_map<std::string, std::pair<std::shared_ptr<Elf>, bool>>* Elf::cache_; std::mutex* Elf::cache_lock_; bool Elf::Init(bool init_gnu_debugdata) { bool Elf::Init() { load_bias_ = 0; if (!memory_) { return false; Loading @@ -54,11 +54,7 @@ bool Elf::Init(bool init_gnu_debugdata) { valid_ = interface_->Init(&load_bias_); if (valid_) { interface_->InitHeaders(load_bias_); if (init_gnu_debugdata) { InitGnuDebugdata(); } else { gnu_debugdata_interface_.reset(nullptr); } } else { interface_.reset(nullptr); } Loading libunwindstack/Global.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ uint64_t Global::GetVariableOffset(MapInfo* info, const std::string& variable) { } } Elf* elf = info->GetElf(memory_, true); Elf* elf = info->GetElf(memory_); uint64_t ptr; // Find first non-empty list (libraries might be loaded multiple times). if (elf->GetGlobalVariable(variable, &ptr) && ptr != 0) { Loading libunwindstack/JitDebug.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { entry_addr_ = (this->*read_entry_func_)(&start, &size); Elf* elf = new Elf(new MemoryRange(memory_, start, size, 0)); elf->Init(true); elf->Init(); if (!elf->valid()) { // The data is not formatted in a way we understand, do not attempt // to process any other entries. Loading libunwindstack/LocalUnwinder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ bool LocalUnwinder::Unwind(std::vector<LocalFrameData>* frame_info, size_t max_f break; } Elf* elf = map_info->GetElf(process_memory_, true); Elf* elf = map_info->GetElf(process_memory_); uint64_t rel_pc = elf->GetRelPc(cur_pc, map_info); uint64_t step_pc = rel_pc; uint64_t pc_adjustment; Loading Loading
libbacktrace/UnwindStackMap.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ std::string UnwindStackMap::GetFunctionName(uint64_t pc, uint64_t* offset) { return ""; } unwindstack::Elf* elf = map_info->GetElf(process_memory(), true); unwindstack::Elf* elf = map_info->GetElf(process_memory()); std::string name; uint64_t func_offset; Loading
libunwindstack/Elf.cpp +2 −6 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ bool Elf::cache_enabled_; std::unordered_map<std::string, std::pair<std::shared_ptr<Elf>, bool>>* Elf::cache_; std::mutex* Elf::cache_lock_; bool Elf::Init(bool init_gnu_debugdata) { bool Elf::Init() { load_bias_ = 0; if (!memory_) { return false; Loading @@ -54,11 +54,7 @@ bool Elf::Init(bool init_gnu_debugdata) { valid_ = interface_->Init(&load_bias_); if (valid_) { interface_->InitHeaders(load_bias_); if (init_gnu_debugdata) { InitGnuDebugdata(); } else { gnu_debugdata_interface_.reset(nullptr); } } else { interface_.reset(nullptr); } Loading
libunwindstack/Global.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ uint64_t Global::GetVariableOffset(MapInfo* info, const std::string& variable) { } } Elf* elf = info->GetElf(memory_, true); Elf* elf = info->GetElf(memory_); uint64_t ptr; // Find first non-empty list (libraries might be loaded multiple times). if (elf->GetGlobalVariable(variable, &ptr) && ptr != 0) { Loading
libunwindstack/JitDebug.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { entry_addr_ = (this->*read_entry_func_)(&start, &size); Elf* elf = new Elf(new MemoryRange(memory_, start, size, 0)); elf->Init(true); elf->Init(); if (!elf->valid()) { // The data is not formatted in a way we understand, do not attempt // to process any other entries. Loading
libunwindstack/LocalUnwinder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ bool LocalUnwinder::Unwind(std::vector<LocalFrameData>* frame_info, size_t max_f break; } Elf* elf = map_info->GetElf(process_memory_, true); Elf* elf = map_info->GetElf(process_memory_); uint64_t rel_pc = elf->GetRelPc(cur_pc, map_info); uint64_t step_pc = rel_pc; uint64_t pc_adjustment; Loading