diff --git a/org.ntlab.reverseDebugger/src/org/ntlab/reversedebugger/CallStackModel.java b/org.ntlab.reverseDebugger/src/org/ntlab/reversedebugger/CallStackModel.java index 86040d9..c5503b5 100644 --- a/org.ntlab.reverseDebugger/src/org/ntlab/reversedebugger/CallStackModel.java +++ b/org.ntlab.reverseDebugger/src/org/ntlab/reversedebugger/CallStackModel.java @@ -14,25 +14,14 @@ import com.sun.jdi.VirtualMachine; public class CallStackModel { - private ObjectReference methodExecution; -// private ObjectReference childMethodExecution; private MethodCaller methodExecutionMc; private int callLineNo; -// public CallStackModel(VirtualMachine vm, ThreadReference thread, ObjectReference methodExecution, ObjectReference childMethodExecution) { -// methodExecutionMc = new MethodCaller(vm, thread, methodExecution); -// this.methodExecution = methodExecution; -// this.childMethodExecution = childMethodExecution; -// } - public CallStackModel(VirtualMachine vm, ThreadReference thread, ObjectReference methodExecution, int callLineNo) { methodExecutionMc = new MethodCaller(vm, thread, methodExecution); - this.methodExecution = methodExecution; this.callLineNo = callLineNo; -// this.childMethodExecution = childMethodExecution; } - public VirtualMachine getVm() { return methodExecutionMc.getVm(); } @@ -49,22 +38,6 @@ return callLineNo; } -// public int getCallLineNo() { -// if (childMethodExecution == null) { -// return -1; -// } -// int callLineNo = -1; -// try { -// ObjectReference callStatement = (ObjectReference)methodExecutionMc.callInstanceMethod("getMethodInvocation", childMethodExecution); -// MethodCaller callStatementMc = new MethodCaller(methodExecutionMc.getVm(), methodExecutionMc.getThread(), callStatement); -// callLineNo = ((IntegerValue)callStatementMc.callInstanceMethod("getLineNo")).value(); -// } catch (InvalidTypeException | ClassNotLoadedException -// | InvocationException | IncompatibleThreadStateException e) { -// e.printStackTrace(); -// } -// return callLineNo; -// } - public String getSignature() { String signature = ""; try {