aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorJames Henderson <james.henderson@sony.com>2020-04-20 14:23:01 +0100
committerJames Henderson <james.henderson@sony.com>2020-04-22 12:28:30 +0100
commite9aac2c3ef4ccbe26a05e9aaea90e0df66cec04d (patch)
tree375354d377d8bf9c49bff587458f49a2a7a1fd61 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent727e6fb84a3a6b5568d24edb794083ca2c750038 (diff)
downloadllvm-e9aac2c3ef4ccbe26a05e9aaea90e0df66cec04d.zip
llvm-e9aac2c3ef4ccbe26a05e9aaea90e0df66cec04d.tar.gz
llvm-e9aac2c3ef4ccbe26a05e9aaea90e0df66cec04d.tar.bz2
[llvm-objdump] Look in all viable sections for call/branch targets
Prior to this patch, llvm-objdump would only look in the last section (according to the section header table order) that matched an address for a symbol when identifying the target symbol of a call or branch operation. If there are multiple sections with the same address, due to some of them being empty, it did not look in those, even if the symbol couldn't be found in the first section looked in. This patch causes llvm-objdump to look in all sections for possible candidate symbols. If there are multiple possible symbols, it picks one from a non-empty section, if possible (as that is more likely to be the "real" symbol since functions can't really be in emptiy sections), before falling back to those in empty sections. If all else fails, it falls back to absolute symbols as it did before. Differential Revision: https://reviews.llvm.org/D78549 Reviewed by: grimar, Higuoxing
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions