[all-commits] [llvm/llvm-project] edc4f4: Unwind past an interrupt handler correctly on arm ...

Jason Molenda via All-commits all-commits at lists.llvm.org
Mon Feb 24 16:11:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: edc4f4c9c9d90b2a4f8831ba4c873f08eaa5395a
      https://github.com/llvm/llvm-project/commit/edc4f4c9c9d90b2a4f8831ba4c873f08eaa5395a
  Author: Jason Molenda <jmolenda at apple.com>
  Date:   2020-02-24 (Mon, 24 Feb 2020)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp

  Log Message:
  -----------
  Unwind past an interrupt handler correctly on arm or at pc==0

Fix RegisterContextLLDB::InitializeNonZerothFrame so that it
will fetch a FullUnwindPlan instead of falling back to the
architectural default unwind plan -- GetFullUnwindPlan knows
how to spot a jmp 0x0 that results in a fault, which may be
the case when we see a trap handler on the stack.

Fix RegisterContextLLDB::SavedLocationForRegister so that when
the pc value is requested from a trap handler frame, where we
have a complete register context available to us, don't provide
the Return Address register (lr) instead of the pc.  We have
an actual pc value here, and it's pointing to the instruction
that faulted.

Differential revision: https://reviews.llvm.org/D75007
<rdar://problem/59416588>




More information about the All-commits mailing list