equal
deleted
inserted
replaced
82 threadInfo.setCurrentFrameIndex(stackFrame); |
82 threadInfo.setCurrentFrameIndex(stackFrame); |
83 } catch (IncompatibleThreadStateException e) { |
83 } catch (IncompatibleThreadStateException e) { |
84 MessageOutput.println("Current thread isnt suspended."); |
84 MessageOutput.println("Current thread isnt suspended."); |
85 } catch (ArrayIndexOutOfBoundsException e) { |
85 } catch (ArrayIndexOutOfBoundsException e) { |
86 MessageOutput.println("Requested stack frame is no longer active:", |
86 MessageOutput.println("Requested stack frame is no longer active:", |
87 new Object []{new Integer(stackFrame)}); |
87 new Object []{stackFrame}); |
88 } |
88 } |
89 } |
89 } |
90 MessageOutput.printPrompt(); |
90 MessageOutput.printPrompt(); |
91 } |
91 } |
92 } |
92 } |
940 methodInfo = MessageOutput.format("unknown"); |
940 methodInfo = MessageOutput.format("unknown"); |
941 } |
941 } |
942 } |
942 } |
943 if (pc != -1) { |
943 if (pc != -1) { |
944 MessageOutput.println("stack frame dump with pc", |
944 MessageOutput.println("stack frame dump with pc", |
945 new Object [] {new Integer(frameNumber + 1), |
945 new Object [] {(frameNumber + 1), |
946 meth.declaringType().name(), |
946 meth.declaringType().name(), |
947 meth.name(), |
947 meth.name(), |
948 methodInfo, |
948 methodInfo, |
949 Long.valueOf(pc)}); |
949 Long.valueOf(pc)}); |
950 } else { |
950 } else { |
951 MessageOutput.println("stack frame dump", |
951 MessageOutput.println("stack frame dump", |
952 new Object [] {new Integer(frameNumber + 1), |
952 new Object [] {(frameNumber + 1), |
953 meth.declaringType().name(), |
953 meth.declaringType().name(), |
954 meth.name(), |
954 meth.name(), |
955 methodInfo}); |
955 methodInfo}); |
956 } |
956 } |
957 } |
957 } |
2091 |
2091 |
2092 void commandVersion(String debuggerName, |
2092 void commandVersion(String debuggerName, |
2093 VirtualMachineManager vmm) { |
2093 VirtualMachineManager vmm) { |
2094 MessageOutput.println("minus version", |
2094 MessageOutput.println("minus version", |
2095 new Object [] { debuggerName, |
2095 new Object [] { debuggerName, |
2096 new Integer(vmm.majorInterfaceVersion()), |
2096 vmm.majorInterfaceVersion(), |
2097 new Integer(vmm.minorInterfaceVersion()), |
2097 vmm.minorInterfaceVersion(), |
2098 System.getProperty("java.version")}); |
2098 System.getProperty("java.version")}); |
2099 if (Env.connection() != null) { |
2099 if (Env.connection() != null) { |
2100 try { |
2100 try { |
2101 MessageOutput.printDirectln(Env.vm().description());// Special case: use printDirectln() |
2101 MessageOutput.printDirectln(Env.vm().description());// Special case: use printDirectln() |
2102 } catch (VMNotConnectedException e) { |
2102 } catch (VMNotConnectedException e) { |