Fix register read callback in linux-arm single stepping
authorPavel Labath <labath@google.com>
Mon, 27 Apr 2015 09:21:14 +0000 (09:21 +0000)
committerPavel Labath <labath@google.com>
Mon, 27 Apr 2015 09:21:14 +0000 (09:21 +0000)
commit6648fcc34b008270109b03dd28345e318fe02f0d
tree2bfa32e9580717b1b4c15f5847775a14065fa319
parent53ffb319d1dfd4e836a13a1dcdf651e4618121c6
Fix register read callback in linux-arm single stepping

The previous read callback always read the value of the register what
caused problems when the emulator wrote some value into a register and
then expected to read the same value back. This CL add a register value
cache into the callbacks to return the correct value after a register
write also.

Test Plan: Stepping over BL/BLX instruction works on android-arm if the instruction set isn't change (other, unrelated patch will come for the case when we move to an other instruction set)

Reviewers: omjavaid, sas, clayborg

Reviewed By: clayborg

Subscribers: labath, tberghammer, rengolin, aemerson, lldb-commits

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

From: Tamas Berghammer <tberghammer@google.com>
llvm-svn: 235852
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp