Fix the registers in the dummy method calls used to replace null pointer method invokes/field accesses

git-svn-id: https://smali.googlecode.com/svn/trunk@438 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-09-08 08:27:52 +00:00
parent 631326836e
commit 285dfd013a
3 changed files with 5 additions and 5 deletions

View File

@ -40,6 +40,6 @@ public class Instruction22csnMethodItem extends InstructionFormatMethodItem<Inst
}
protected void setAttributes(StringTemplate template) {
template.setAttribute("Register", instruction.RegisterNum);
template.setAttribute("Register", formatRegister(instruction.RegisterNum));
}
}

View File

@ -40,6 +40,6 @@ public class Instruction35msnMethodItem extends InstructionFormatMethodItem<Inst
}
protected void setAttributes(StringTemplate template) {
template.setAttribute("Register", instruction.RegisterNum);
template.setAttribute("Register", formatRegister(instruction.RegisterNum));
}
}

View File

@ -200,8 +200,8 @@ Format22csf(Opcode, RegisterA, RegisterB, Reference) ::=
Format22csn(Opcode, Register) ::=
<<
#Couldn't determine field access while deodexing, replaced with generic method call
invoke-virtual <Register>, Ljava/lang/Object;->hashCode()I
#Couldn't determine the field while deodexing, replaced with generic method call
invoke-virtual-range {<Register> .. <Register>}, Ljava/lang/Object;->hashCode()I
>>
Format22s(Opcode, RegisterA, RegisterB, Literal) ::=
@ -277,7 +277,7 @@ Format35msf(Opcode, Registers, Reference) ::=
Format35msn(Opcode, Register) ::=
<<
#Couldn't determine method while deodexing, replaced with generic method call
invoke-virtual <Register>, Ljava/lang/Object;->hashCode()I
invoke-virtual-range {<Register> .. <Register>}, Ljava/lang/Object;->hashCode()I
>>
Format3rc(Opcode, StartRegister, LastRegister, Reference) ::=