Remove trap code from disassembly.
authorChaoren Lin <chaorenl@google.com>
Wed, 29 Apr 2015 17:24:48 +0000 (17:24 +0000)
committerChaoren Lin <chaorenl@google.com>
Wed, 29 Apr 2015 17:24:48 +0000 (17:24 +0000)
commit3eb4b4589e0094a39fa2e1a8b1e9f585b6cdaa69
tree3962354cbc0c3233a9bd4d31f75c321f240a33ec
parent387ce30685ae178c87588fe9b5e18d7f1ff76864
Remove trap code from disassembly.

Summary:
NativeProcessProtocol uses ReadMemory internally for setting/checking
breakpoints but also for generic memory reads (Handle_m), this change adds a
ReadMemoryWithoutTrap for that purpose. Also fixes a bunch of misuses of addr_t
as size/length.

Test Plan: `disassemble` no longer shows the trap code.

Reviewers: jingham, vharron, clayborg

Reviewed By: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9330

llvm-svn: 236132
lldb/include/lldb/Host/common/NativeBreakpointList.h
lldb/include/lldb/Host/common/NativeProcessProtocol.h
lldb/include/lldb/Host/common/NativeRegisterContext.h
lldb/include/lldb/Host/common/SoftwareBreakpoint.h
lldb/source/Host/common/NativeBreakpointList.cpp
lldb/source/Host/common/NativeRegisterContext.cpp
lldb/source/Host/common/SoftwareBreakpoint.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp