diff options
| author | Pavel Labath <pavel@labath.sk> | 2018-09-05 18:08:56 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2018-09-05 18:08:56 +0000 |
| commit | ef1b1b5d1715acf2f5f4b483dcffec4221292d87 (patch) | |
| tree | 57c0728f5939b408ff4a52a642940b1543980392 /lldb/include | |
| parent | 13b55bbc2f446b6ff3fae5288c1a0c700d3dc846 (diff) | |
| download | bcm5719-llvm-ef1b1b5d1715acf2f5f4b483dcffec4221292d87.tar.gz bcm5719-llvm-ef1b1b5d1715acf2f5f4b483dcffec4221292d87.zip | |
Modernize NativeProcessProtocol::GetSoftwareBreakpointTrapOpcode
return the opcode as a Expected<ArrayRef> instead of a
Status+pointer+size combo.
I also move the linux implementation to the base class, as the trap
opcodes are likely to be the same for all/most implementations of the
class (except the arm one, where linux chooses a different opcode than
what the arm spec recommends, which I keep linux-specific).
llvm-svn: 341487
Diffstat (limited to 'lldb/include')
| -rw-r--r-- | lldb/include/lldb/Host/common/NativeProcessProtocol.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/include/lldb/Host/common/NativeProcessProtocol.h b/lldb/include/lldb/Host/common/NativeProcessProtocol.h index d96835d7583..43e732c746d 100644 --- a/lldb/include/lldb/Host/common/NativeProcessProtocol.h +++ b/lldb/include/lldb/Host/common/NativeProcessProtocol.h @@ -448,10 +448,8 @@ protected: // ----------------------------------------------------------- Status SetSoftwareBreakpoint(lldb::addr_t addr, uint32_t size_hint); - virtual Status - GetSoftwareBreakpointTrapOpcode(size_t trap_opcode_size_hint, - size_t &actual_opcode_size, - const uint8_t *&trap_opcode_bytes) = 0; + virtual llvm::Expected<llvm::ArrayRef<uint8_t>> + GetSoftwareBreakpointTrapOpcode(size_t size_hint); // ----------------------------------------------------------- /// Notify the delegate that an exec occurred. |

