summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-01-29 23:13:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-01-29 23:13:07 +0000
commit5852c31cf7b0c41317097fe6771adc6e1b841ed4 (patch)
tree196b449b38bfe9e8a82e96c3c0897e4efea0e12a
parente6f25c4536a7eae78fe06c38e691863055e4e7b7 (diff)
parent2cc8870117c79ed2840102d345d25f92b72a3241 (diff)
downloadunwinding-5852c31cf7b0c41317097fe6771adc6e1b841ed4.tar.gz
Merge "Fix bug in unwind_info display of exidx frame."
-rw-r--r--libunwindstack/tools/unwind_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tools/unwind_info.cpp b/libunwindstack/tools/unwind_info.cpp
index 3f5b88b..19982d8 100644
--- a/libunwindstack/tools/unwind_info.cpp
+++ b/libunwindstack/tools/unwind_info.cpp
@@ -44,10 +44,10 @@ void DumpArm(Elf* elf, ElfInterfaceArm* interface) {
}
printf("ARM Unwind Information:\n");
+ uint64_t load_bias = elf->GetLoadBias();
for (const auto& entry : interface->pt_loads()) {
- uint64_t load_bias = entry.second.table_offset;
printf(" PC Range 0x%" PRIx64 " - 0x%" PRIx64 "\n", entry.second.offset + load_bias,
- entry.second.table_size + load_bias);
+ entry.second.offset + entry.second.table_size + load_bias);
for (auto pc : *interface) {
std::string name;
printf(" PC 0x%" PRIx64, pc + load_bias);