llvm-capstone/lldb
Joseph Tremoulet 31e6dbe1c6 Fix PC adjustment in StackFrame::GetSymbolContext
Summary:
Update StackFrame::GetSymbolContext to mirror the logic in
RegisterContextLLDB::InitializeNonZerothFrame that knows not to do the
pc decrement when the given frame is a signal trap handler frame or the
parent of one, because the pc may not follow a call in these frames.
Accomplish this by adding a behaves_like_zeroth_frame field to
lldb_private::StackFrame, set to true for the zeroth frame, for
signal handler frames, and for parents of signal handler frames.

Also add logic to propagate the signal handler flag from UnwindPlan to
the FrameType on the RegisterContextLLDB it generates, and factor out a
helper to resolve symbol and address range for an Address now that we
need to invoke it in four places.

Reviewers: jasonmolenda, clayborg, jfb

Reviewed By: jasonmolenda

Subscribers: labath, dexonsmith, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D64993

llvm-svn: 367691
2019-08-02 16:53:42 +00:00
..
cmake
docs [lldb][docs] Update landing page for monorepo 2019-08-01 10:33:54 +00:00
examples
include/lldb Fix PC adjustment in StackFrame::GetSymbolContext 2019-08-02 16:53:42 +00:00
lit Fix PC adjustment in StackFrame::GetSymbolContext 2019-08-02 16:53:42 +00:00
packages/Python/lldbsuite [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
resources
scripts
source Fix PC adjustment in StackFrame::GetSymbolContext 2019-08-02 16:53:42 +00:00
test
third_party/Python/module
tools
unittests
utils
.arcconfig
.clang-format
.gitignore
CMakeLists.txt [CMake] Move project() call to main CMake file 2019-07-29 23:09:31 +00:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py