Exit unwinding early when at the top of the stack and additional info won't be found.
authorSterling Augustine <saugustine@google.com>
Mon, 30 Mar 2020 22:20:26 +0000 (15:20 -0700)
committerSterling Augustine <saugustine@google.com>
Thu, 2 Apr 2020 17:52:25 +0000 (10:52 -0700)
commit71fbd6e40632f437049215904c28ad9d63cff4bc
tree6ee77fe00c2c3add59f4a472ab0990357b190004
parentf4448063ccf1c2eda518ad326018276baff870d2
Exit unwinding early when at the top of the stack and additional info won't be found.

Summary:
This patch follows libgcc's lead: When the return-address register is
zero, there won't be additional stack frames to examine, or gather
information about. Exit before spending time looking for something
known not to be found.

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77099
libunwind/src/UnwindCursor.hpp