Rollback "Fix for KT-10659: Debugger: Evaluate Expression and Watches fail for inline function parameter passed by reference"

This commit is contained in:
Michael Bogdanov
2016-02-08 10:26:41 +03:00
parent 9e5c387d6c
commit 848549dd5d
5 changed files with 5 additions and 43 deletions
@@ -94,8 +94,8 @@ public class LocalVarRemapper {
public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index, MethodVisitor mv) {
RemapInfo info = doRemap(index);
//add entries only for shifted vars or remapped to locals
if (SHIFT == info.status || REMAPPED == info.status && info.value instanceof StackValue.Local) {
//add entries only for shifted vars
if (SHIFT == info.status) {
int newIndex = ((StackValue.Local) info.value).index;
mv.visitLocalVariable(name, desc, signature, start, end, newIndex);
}
@@ -7,5 +7,6 @@ fun main(args: Array<String>) {
watch(local) { it.length }
}
// 2 LOCALVARIABLE p
// 1 LOCALVARIABLE p\$iv
/*fix rollbacked cause of robovm problem*/
// 1 LOCALVARIABLE p
// 0 LOCALVARIABLE p\$iv