android_system_core/libunwindstack/tests/files/offline
Christopher Ferris a09c4a6ff2 Fix offsets when shared lib split across maps.
The linker was modified so that a shared library has a read-only
map, then a read-execute map to represent the whole shared library.
When backtraces are created, then the offsets are set incorrectly
for backtraces. For example, all backtraces wind up with an offset now,
and a shared library loaded out of an apk shows the wrong offset.

Changes:
- Fix the FormatFrame function which was putting the offset before the
  map name.
- Refactor the Maps and MapInfo classes to keep track of the previous map
  instead of all maps. This was the only map that was ever needed.
- Modify the unwind_for_offline tool to capture both the read-only and
  read-execute map when using the read-only segment option.

Bug: 120981155

Test: Updated unit tests pass.
Test: Unwinds on device don't show the offsets everywhere any more.
Change-Id: I75b3727221be9c20316dfdcd7a1c6d242d7ce948
2018-12-18 11:22:14 -08:00
..
art_quick_osr_stub_arm Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
bad_eh_frame_hdr_arm64 Small behavioral changes to the unwinder. 2018-01-24 13:20:03 -08:00
debug_frame_first_x86 Small behavioral changes to the unwinder. 2018-01-24 13:20:03 -08:00
debug_frame_load_bias_arm Fix handling of load bias values. 2018-06-11 18:53:55 -07:00
eh_frame_hdr_begin_x86_64 Fix off by 4 error handling eh_frame hdr. 2018-02-10 17:11:23 -08:00
gnu_debugdata_arm Small test clean up. 2018-02-05 13:12:54 -08:00
jit_debug_arm Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
jit_debug_x86 Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
jit_map_arm Support a map that represents gdb jit elf data. 2018-03-21 17:23:54 -07:00
offset_arm Fix offsets when shared lib split across maps. 2018-12-18 11:22:14 -08:00
shared_lib_in_apk_arm64 Fix handling of ro segments for embedded libs. 2018-12-11 19:16:29 -08:00
shared_lib_in_apk_memory_only_arm64 Fix handling of ro segments for embedded libs. 2018-12-11 19:16:29 -08:00
straddle_arm Small test clean up. 2018-02-05 13:12:54 -08:00
straddle_arm64