[Lldb-commits] [lldb] r235713 - Fix write register context for arm "add<c> <Rd>, sp, #imm"
Tamas Berghammer
tberghammer at google.com
Fri Apr 24 05:13:39 PDT 2015
Author: tberghammer
Date: Fri Apr 24 07:13:38 2015
New Revision: 235713
URL: http://llvm.org/viewvc/llvm-project?rev=235713&view=rev
Log:
Fix write register context for arm "add<c> <Rd>, sp, #imm"
Differential revision: http://reviews.llvm.org/D9213
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=235713&r1=235712&r2=235713&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Fri Apr 24 07:13:38 2015
@@ -1357,7 +1357,11 @@ EmulateInstructionARM::EmulateADDSPImm (
addr_t addr = sp + sp_offset; // the adjusted stack pointer value
EmulateInstruction::Context context;
- context.type = EmulateInstruction::eContextAdjustStackPointer;
+ if (d == 13)
+ context.type = EmulateInstruction::eContextAdjustStackPointer;
+ else
+ context.type = EmulateInstruction::eContextRegisterPlusOffset;
+
RegisterInfo sp_reg;
GetRegisterInfo (eRegisterKindDWARF, dwarf_sp, sp_reg);
context.SetRegisterPlusOffset (sp_reg, sp_offset);
More information about the lldb-commits
mailing list