summaryrefslogtreecommitdiff
path: root/libunwindstack/Unwinder.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-03-14 15:40:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-14 15:40:59 +0000
commit4886a5bd5942275c20fa95df3ccb03e70a97328c (patch)
tree8c40e397a05578712906cb0e546a77d9799f0dd1 /libunwindstack/Unwinder.cpp
parentff3c13f52f1d223a4aa2904234867e6199643766 (diff)
parent02a6c448c32c37aae834bc25e92db97bfac32524 (diff)
Merge "Add support for displaying soname in an apk."
Diffstat (limited to 'libunwindstack/Unwinder.cpp')
-rw-r--r--libunwindstack/Unwinder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libunwindstack/Unwinder.cpp b/libunwindstack/Unwinder.cpp
index 2734cf8d3..a1c58ddb3 100644
--- a/libunwindstack/Unwinder.cpp
+++ b/libunwindstack/Unwinder.cpp
@@ -105,6 +105,12 @@ void Unwinder::FillInFrame(MapInfo* map_info, Elf* elf, uint64_t rel_pc, uint64_
if (resolve_names_) {
frame->map_name = map_info->name;
+ if (embedded_soname_ && map_info->elf_start_offset != 0 && !frame->map_name.empty()) {
+ std::string soname = elf->GetSoname();
+ if (!soname.empty()) {
+ frame->map_name += '!' + soname;
+ }
+ }
}
frame->map_elf_start_offset = map_info->elf_start_offset;
frame->map_exact_offset = map_info->offset;