Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7010ecb5 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Fix bug in unwind_info display of exidx frame.

The rosegment changed the load segments and broke the unwind_info printing
of unwind information for the arm exidx frame.

Test: Fixed and verified by dumping the arm exidx frame.
Change-Id: I7270175e4dcb7fee2b96a16d168880ebd09f19b1
parent 0b6d56e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);