diff options
| author | Christopher Ferris <cferris@google.com> | 2018-12-13 09:33:45 -0800 |
|---|---|---|
| committer | Christopher Ferris <cferris@google.com> | 2018-12-13 10:41:08 -0800 |
| commit | 065f15619528c95784db0c0193e8d36303e64b10 (patch) | |
| tree | e3c22c8b88216ec72a88cbc83295ebe916b41de0 /libunwindstack/tests/MemoryCacheTest.cpp | |
| parent | 583ce2deff4caa28fdadd80796cce41e6e7be99a (diff) | |
Do not remove speculative frames in all cases.
If the first frame of an unwind is a totally invalid pc that's not in
any map, a speculative frame is added. Rather than deleting this frame
if no more unwinding is possible, leave it. This fixes a case where
the only frame you get is an invalid one, but the speculative frame
winds up in a shared library or somewhere else and gets removed.
Bug: 120505086
Test: New unit tests to catch this case pass.
Test: Verified original crashing program now emits two backtrace lines.
Change-Id: I088dff21c057386dcdaeb3fc2578b24322683bd0
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions
