llvm-project/lldb
Fred Riss 91e90cf622 lldb/Instrumentation: NFC-ish use GetFrameCodeAddressForSymbolication()
A couple of our Instrumentation runtimes were gathering backtraces,
storing it in a StructuredData array and later creating a HistoryThread
using this data. By deafult HistoryThread will consider the history PCs
as return addresses and thus will substract 1 from them to go to the
call address.

This is usually correct, but it's also wasteful as when we gather the
backtraces ourselves, we have much better information to decide how
to backtrace and symbolicate. This patch uses the new
GetFrameCodeAddressForSymbolication() to gather the PCs that should
be used for symbolication and configures the HistoryThread to just
use those PCs as-is.

(The MTC plugin was actaully applying a -1 itself and then the
HistoryThread would do it again, so this actaully fixes a bug there.)

rdar://77027680

Differential Revision: https://reviews.llvm.org/D101094
2021-04-22 13:32:43 -07:00
..
bindings Revert "[lldb/Plugins] Add ScriptedProcess Process Plugin" 2021-03-24 21:31:16 +01:00
cmake [lldb] Remove XPCServices symlinking 2021-03-01 11:23:46 -08:00
docs [lldb] Improve the documentation (#42017) 2021-04-08 10:58:02 -07:00
examples [lldb] Include thread name in crashlog.py output 2021-04-22 11:38:53 -07:00
include/lldb [lldb] Fix RichManglingContext::FromCxxMethodName() leak 2021-04-21 12:32:08 -07:00
packages/Python [lldb-vscode] Distinguish shadowed variables in the scopes request 2021-04-21 15:09:39 -07:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source lldb/Instrumentation: NFC-ish use GetFrameCodeAddressForSymbolication() 2021-04-22 13:32:43 -07:00
test Skip unreliable LLDB tests when running under asan 2021-04-22 11:55:43 -07:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb-vscode] Use a DenseMap to pacify overly aggressive linters 2021-04-22 13:07:39 +02:00
unittests [lldb][NFC] Fix unsigned/signed cmp warning in MainLoopTest 2021-04-22 12:20:32 +02:00
utils Reapply "[lldb/test] Automatically find debug servers to test" 2021-02-21 20:47:47 +01:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [CMake] Remove dead code setting policies to NEW 2021-01-19 17:19:36 +02:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py