Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.tools.debug.shell/src/com/oracle/truffle/tools/debug/shell/server/REPLHandler.java @ 22293:260e3cdf11ec
Truffle/Instrumentation: replace (non-functional) AdvancedInstrument kind with new EvalInstrument
- new API much simpler: only new method Instrumenter.attach() plus new kind of listener
- removed the "expected result type check", which is now left to clients
- the code to be evaluated now represented as a Source
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 08 Oct 2015 16:48:42 -0400 |
parents | dc83cc1f94f2 |
children | 2b1845933b6f |
comparison
equal
deleted
inserted
replaced
22274:371045b1312d | 22293:260e3cdf11ec |
---|---|
109 infoMessage.put(REPLMessage.BREAKPOINT_ID, Integer.toString(serverContext.getBreakpointID(breakpoint))); | 109 infoMessage.put(REPLMessage.BREAKPOINT_ID, Integer.toString(serverContext.getBreakpointID(breakpoint))); |
110 infoMessage.put(REPLMessage.BREAKPOINT_HIT_COUNT, Integer.toString(breakpoint.getHitCount())); | 110 infoMessage.put(REPLMessage.BREAKPOINT_HIT_COUNT, Integer.toString(breakpoint.getHitCount())); |
111 infoMessage.put(REPLMessage.BREAKPOINT_IGNORE_COUNT, Integer.toString(breakpoint.getIgnoreCount())); | 111 infoMessage.put(REPLMessage.BREAKPOINT_IGNORE_COUNT, Integer.toString(breakpoint.getIgnoreCount())); |
112 infoMessage.put(REPLMessage.INFO_VALUE, breakpoint.getLocationDescription().toString()); | 112 infoMessage.put(REPLMessage.INFO_VALUE, breakpoint.getLocationDescription().toString()); |
113 if (breakpoint.getCondition() != null) { | 113 if (breakpoint.getCondition() != null) { |
114 infoMessage.put(REPLMessage.BREAKPOINT_CONDITION, breakpoint.getCondition()); | 114 infoMessage.put(REPLMessage.BREAKPOINT_CONDITION, breakpoint.getCondition().getCode()); |
115 } | 115 } |
116 infoMessage.put(REPLMessage.STATUS, REPLMessage.SUCCEEDED); | 116 infoMessage.put(REPLMessage.STATUS, REPLMessage.SUCCEEDED); |
117 return infoMessage; | 117 return infoMessage; |
118 } | 118 } |
119 | 119 |