summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-10-24 18:10:38 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-10-24 18:10:38 +0000
commit4bb928c11010e1ba38b19ee89ac77ed1d096a76a (patch)
treebadb64132e1de3362c5f016c624786f5c325cca2 /lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
parentf124275cf9ddc8b8da68349f5f166640b31473be (diff)
downloadbcm5719-llvm-4bb928c11010e1ba38b19ee89ac77ed1d096a76a.tar.gz
bcm5719-llvm-4bb928c11010e1ba38b19ee89ac77ed1d096a76a.zip
ARM: Use BKPT instead of TRAP to implement llvm.debugtrap.
The BKPT instruction is specified to cause a software breakpoint, and at least on Linux results in a SIGTRAP. This makes it more suitable for implementing debugtrap than TRAP (aka UDF #254), which is specified to cause an undefined instruction exception and results in a SIGILL on Linux. Moreover, BKPT is not marked as a terminator, which is not only consistent with the IR instruction but allows the analyzeBlock function to correctly analyze a basic block containing the instruction, which fixes an assertion failure in the machine block placement pass previously triggered by the included test case. Because BKPT is only supported starting with ARMv5T, we continue to use UDF #254 when targeting v4T. Differential Revision: https://reviews.llvm.org/D53614 llvm-svn: 345171
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud