summaryrefslogtreecommitdiff
path: root/libunwindstack/Android.bp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2020-09-30 18:31:05 -0700
committerChristopher Ferris <cferris@google.com>2020-10-02 16:34:14 -0700
commit2f503fb7d348881cad8acbbb8a342ab68c392529 (patch)
tree289cc5807ca0461e542221e62ab4ec8934e6edf5 /libunwindstack/Android.bp
parent41869310b42b775a4b0ddd7f12454adeb3bf3423 (diff)
downloadunwinding-2f503fb7d348881cad8acbbb8a342ab68c392529.tar.gz
libunwindstack: Support signal frame CIEs.
Mark a CIE with a S in its augmentation string as signal frame. This allows the code to properly handle signal frame data if none of the signal frame pattern matchers work. For a signal frame, DwarfSectionImpl<AddressType>::Eval needs to continue the unwinding even if PC is zero. A zero PC means that the program has crashed, and we should try to recover the real PC using the return address on the stack or LR. This behavior is tested by UnwindOffline.signal_{x86,x86_64}, which modify the libc.so files so that the signal frame pattern matcher fails and the CIE/FDE data is used instead. Test: libunwindstack_test Change-Id: I4655b070028fd984345311a5e743796f8c30ed36
Diffstat (limited to 'libunwindstack/Android.bp')
-rw-r--r--libunwindstack/Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp
index 75a419c..7770b13 100644
--- a/libunwindstack/Android.bp
+++ b/libunwindstack/Android.bp
@@ -296,6 +296,8 @@ cc_defaults {
"tests/files/offline/shared_lib_in_apk_memory_only_arm64/*",
"tests/files/offline/shared_lib_in_apk_single_map_arm64/*",
"tests/files/offline/signal_load_bias_arm/*",
+ "tests/files/offline/signal_fde_x86/*",
+ "tests/files/offline/signal_fde_x86_64/*",
"tests/files/offline/straddle_arm/*",
"tests/files/offline/straddle_arm64/*",
],