Author: tberghammer
Date: Wed May 27 07:32:28 2015
New Revision: 238312

URL: http://llvm.org/viewvc/llvm-project?rev=238312&view=rev
Log:
Fix write register context in EmulateInstructionARM::EmulateMOVRdRm

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=238312&r1=238311&r2=238312&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp 
(original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Wed May 
27 07:32:28 2015
@@ -809,13 +809,13 @@ EmulateInstructionARM::EmulateMOVRdRm (c
         uint32_t result = ReadCoreReg(Rm, &success);
         if (!success)
             return false;
-        
+
         // The context specifies that Rm is to be moved into Rd.
         EmulateInstruction::Context context;
-        context.type = EmulateInstruction::eContextRegisterLoad;
+        context.type = EmulateInstruction::eContextRegisterPlusOffset;
         RegisterInfo dwarf_reg;
         GetRegisterInfo (eRegisterKindDWARF, dwarf_r0 + Rm, dwarf_reg);
-        context.SetRegister (dwarf_reg);
+        context.SetRegisterPlusOffset (dwarf_reg, 0);
 
         if (!WriteCoreRegOptionalFlags(context, result, Rd, setflags))
             return false;


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to