summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2023-02-13 19:46:02 +0800
committerBen Shi <powerman1st@163.com>2023-02-14 16:22:14 +0800
commit697a162fa63df328ec9ca334636c5e85390b2bf0 (patch)
tree4a2bb69d1df79b6407a41de8b657ea9dd72f1e60 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent1e6921131aa46fae65344f057c6bb40610a43443 (diff)
[AVR] Fix inaccurate offsets in PC relative branch instructions
In avr-gcc, the destination of "rjmp label + offset" is address 'label + offset', while destination of "rjmp . + offset" is 'address_of_rjmp + offset + 2'. Clang is in accordance with avr-gcc for "rjmp label + offset", but emits incorrect destination of "rjmp . + offset" to 'address_of_rjmp + offset', in which the expected offset 2 is missing. This patch fixes the above issue. Fixes https://github.com/llvm/llvm-project/issues/60019 Reviewed By: jacquesguan, aykevl Differential Revision: https://reviews.llvm.org/D143901
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions