aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2019-04-10 11:28:28 +0000
committerDavid Stenberg <david.stenberg@ericsson.com>2019-04-10 11:28:28 +0000
commitb96943b6a00d76e4bcf5b6d459d346cd2fb9e296 (patch)
tree57e6052df4c8acfea9c1a76d951f0b52c05182cb /lldb/source/Plugins/ScriptInterpreter/Python
parent5ffec6deef0ad0380198db18d2a6412046c0072d (diff)
downloadllvm-b96943b6a00d76e4bcf5b6d459d346cd2fb9e296.zip
llvm-b96943b6a00d76e4bcf5b6d459d346cd2fb9e296.tar.gz
llvm-b96943b6a00d76e4bcf5b6d459d346cd2fb9e296.tar.bz2
[DebugInfo] Track multiple registers in DbgEntityHistoryCalculator
Summary: When calculating the debug value history, DbgEntityHistoryCalculator would only keep track of register clobbering for the latest debug value per inlined entity. This meant that preceding register-described debug value fragments would live on until the next overlapping debug value, ignoring any potential clobbering. This patch amends DbgEntityHistoryCalculator so that it keeps track of all registers that a inlined entity's currently live debug values are described by. The DebugInfo/COFF/pieces.ll test case has had to be changed since previously a register-described fragment would incorrectly outlive its basic block. The parent patch D59941 is expected to increase the coverage slightly, as it makes sure that location list entries are inserted after clobbered fragments, and this patch is expected to decrease it, as it stops preceding register-described from living longer than they should. All in all, this patch and the preceding patch has a negligible effect on the output from `llvm-dwarfdump -statistics' for a clang-3.4 binary built using the RelWithDebInfo build profile. "Scope bytes covered" increases by 0.5%, and "variables with location" increases from 2212083 to 2212088, but it should improve the accuracy quite a bit. This fixes PR40283. Reviewers: aprantl, probinson, dblaikie, rnk, bjope Reviewed By: aprantl Subscribers: llvm-commits Tags: #debug-info, #llvm Differential Revision: https://reviews.llvm.org/D59942 llvm-svn: 358073
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions