diff options
| author | Pavel Labath <pavel@labath.sk> | 2018-09-26 07:31:41 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2018-09-26 07:31:41 +0000 |
| commit | 0ae4022aa0bb2572ef7b997d00904125a0e089b1 (patch) | |
| tree | 0b33b2c96f7e879fd10253a0540a2b12960b507d /llvm/lib/BinaryFormat/MsgPackWriter.cpp | |
| parent | 664dd75b42709411bfe4d1d8d248a8f4bf15e4c9 (diff) | |
| download | bcm5719-llvm-0ae4022aa0bb2572ef7b997d00904125a0e089b1.tar.gz bcm5719-llvm-0ae4022aa0bb2572ef7b997d00904125a0e089b1.zip | |
Fix a memory read bug in lldb-server
NativeProcessProtocol::ReadMemoryWithoutTrap had a bug, where it failed
to properly remove inserted breakpoint opcodes if the memory read
partially overlapped the trap opcode. This could not happen on x86
because it has a one-byte breakpoint instruction, but it could happen on
arm, which has a 4-byte breakpoint instruction (in arm mode).
Since triggerring this condition would only be possible on an arm
machine (and even then it would be a bit tricky). I test this using a
NativeProcessProtocol unit test.
llvm-svn: 343076
Diffstat (limited to 'llvm/lib/BinaryFormat/MsgPackWriter.cpp')
0 files changed, 0 insertions, 0 deletions

