summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorEric Leese <leese@google.com>2020-12-01 16:01:33 -0800
committerDerek Schuff <dschuff@chromium.org>2020-12-01 17:06:32 -0800
commit8b8088ac6ca977fbce52abd50ac88ecbe08d9cb2 (patch)
tree215cf93f61352d8774981d5dd877eacdee073b4e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent1e91803c671a105f1eabce0e496766b512242f1d (diff)
[lld] Use -1 as tombstone value for discarded code ranges
Under existing behavior discarded functions are relocated to have the start pc 0. This causes problems when debugging as they typically overlap the first function and lldb symbol resolution frequently chooses a discarded function instead of the correct one. Using the value -1 or -2 (depending on which DWARF section we are writing) is sufficient to prevent lldb from resolving to these symbols. Reviewed By: MaskRay, yurydelendik, sbc100 Differential Revision: https://reviews.llvm.org/D91803
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions