android_system_core/libunwindstack/tests/files/offline
Christopher Ferris 4cc36d2b43 Fix handling of load bias values.
It turns out that for the dwarf information, if a FDE indicates it's pc
relative, then pc has to be incremented by the load bias. If not, then
it should not be incremented.

Previously, the code always subtracted load bias values from pcs, and assumed
that all fdes were incremented by load bias values. The new code actually
reads the fdes and adjusted the pcs in the fde and in the eh frame hdr so
that load bias values are already handled properly.

In addition, add dumping of arm exidx values in unwind_reg_info. This allowed
verifying that the debug frame in those elf files was being handled properly.

Added a new unit test that only has a debug frame that has a non-zero load
bias and has fde entries that do not have pc relative encoding.

Fix a couple of other small bugs.

Bug: 109824792

Test: All libbacktrace/libunwindstack unit tests pass.
Test: Ran ART 137-cfi test and 004-ThreadStress.
Test: Verify that displaying the fde start and end pc actually match the
Test: real data for fde that have pc relative set, and that don't.
Test: Verified that the unwind information for arm exidx matches the
Test: debug frame data.

Change-Id: I707555286b5cb05df9f25489e8c5ede753cfe0fb
2018-06-11 18:53:55 -07:00
..
art_quick_osr_stub_arm Always set the sp reg to the cfa for DWARF. 2018-03-16 23:38:07 -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 Small test clean up. 2018-02-05 13:12:54 -08:00
jit_debug_x86 Small test clean up. 2018-02-05 13:12:54 -08:00
jit_map_arm Support a map that represents gdb jit elf data. 2018-03-21 17:23:54 -07:00
offset_arm Fix bug when doing signal handler lookup. 2018-05-17 18:58:42 -07:00
straddle_arm Small test clean up. 2018-02-05 13:12:54 -08:00
straddle_arm64 Fix incorrect usage of relative pcs. 2017-11-29 16:10:08 -08:00