[Lldb-commits] [PATCH] D10932: Improve UnwindLLDB with better detection for unwinding failures

Tamas Berghammer tberghammer at google.com
Fri Jul 3 08:38:34 PDT 2015


tberghammer created this revision.
tberghammer added a reviewer: jasonmolenda.
tberghammer added a subscriber: lldb-commits.

Improve UnwindLLDB with better detection for unwinding failures

Previously we accepted a frame as correct result if the PC pointed into an executable section of code. The isse with that approac is that if we calculated PC correctly but messed up the value of CFA then unwinding from the next fram will most likely fail.

With this change I modify the logic with keeping the requirement for PC to point to an executable section and also check that we can continue the unwind from the frame we calculated. If continuing from the frame calculated with the primary unwind plan isn't working then fall back to the fallback plan with the hope for a better frame (if the fallback plan won't help then we acceot the frame from the primary plan).

http://reviews.llvm.org/D10932

Files:
  source/Plugins/Process/Utility/UnwindLLDB.cpp
  source/Plugins/Process/Utility/UnwindLLDB.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10932.29029.patch
Type: text/x-patch
Size: 12042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150703/5af60825/attachment.bin>


More information about the lldb-commits mailing list