[Lldb-commits] [lldb] r125212 - /lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
Johnny Chen
johnny.chen at apple.com
Wed Feb 9 11:30:49 PST 2011
Author: johnny
Date: Wed Feb 9 13:30:49 2011
New Revision: 125212
URL: http://llvm.org/viewvc/llvm-project?rev=125212&view=rev
Log:
Modified EmulatePop impl to use the helper method LoadWritePC(context, data) since if PC
is in the list of registers to be load and we're in ARMv5T and above, this is an interworking branch.
Modified:
lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=125212&r1=125211&r2=125212&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Wed Feb 9 13:30:49 2011
@@ -366,7 +366,8 @@
data = ReadMemoryUnsigned(context, addr, 4, 0, &success);
if (!success)
return false;
- if (!WriteRegisterUnsigned(context, eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC, data))
+ // In ARMv5T and above, this is an interworking branch.
+ if (!LoadWritePC(context, data))
return false;
addr += addr_byte_size;
}
More information about the lldb-commits
mailing list