llvm-project/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 [lldb][CMake] Avoid 'Autogenerate scheme' dialogs in Xcode projects 2019-08-01 10:33:44 +00:00
docs [lldb][docs] Update landing page for monorepo 2019-08-01 10:33:54 +00:00
examples [Symbolication] Remove some dead code. Nothing exciting. 2019-07-29 21:25:51 +00:00
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 [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [lldb] Remove Xcode project legacy 2019-07-24 09:20:14 +00:00
source Fix PC adjustment in StackFrame::GetSymbolContext 2019-08-02 16:53:42 +00:00
test [dotest] Remove multiprocessing 2019-07-30 16:42:47 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [Symbol] Use llvm::Expected when getting TypeSystems 2019-07-30 22:12:34 +00:00
unittests Add missing includes to SymbolFilePDBTests 2019-07-31 11:31:05 +00:00
utils [TableGen] Move helpers into LLDBTableGenUtils. 2019-07-31 00:47:00 +00:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [CMake] Move project() call to main CMake file 2019-07-29 23:09:31 +00:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py