diff options
author | Christopher Ferris <cferris@google.com> | 2019-03-14 15:40:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-14 15:40:59 +0000 |
commit | 4886a5bd5942275c20fa95df3ccb03e70a97328c (patch) | |
tree | 8c40e397a05578712906cb0e546a77d9799f0dd1 /libunwindstack/Elf.cpp | |
parent | ff3c13f52f1d223a4aa2904234867e6199643766 (diff) | |
parent | 02a6c448c32c37aae834bc25e92db97bfac32524 (diff) |
Merge "Add support for displaying soname in an apk."
Diffstat (limited to 'libunwindstack/Elf.cpp')
-rw-r--r-- | libunwindstack/Elf.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libunwindstack/Elf.cpp b/libunwindstack/Elf.cpp index 2f5eed9f8..4b93abb43 100644 --- a/libunwindstack/Elf.cpp +++ b/libunwindstack/Elf.cpp @@ -93,9 +93,12 @@ void Elf::Invalidate() { valid_ = false; } -bool Elf::GetSoname(std::string* name) { +std::string Elf::GetSoname() { std::lock_guard<std::mutex> guard(lock_); - return valid_ && interface_->GetSoname(name); + if (!valid_) { + return ""; + } + return interface_->GetSoname(); } uint64_t Elf::GetRelPc(uint64_t pc, const MapInfo* map_info) { |