comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/DebugSupportProvider.java @ 22003:5bc7f7b867ab

Making debugger always on for each TruffleVM execution. Introducing EventConsumer to process such debugger events. Requesting each RootNode to be associated with a TruffleLanguage, so debugger can find out proper context for each Node where executions gets suspended.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Sat, 18 Jul 2015 18:03:36 +0200
parents 9c8c0937da41
children dc83cc1f94f2
comparison
equal deleted inserted replaced
22002:324997830dc9 22003:5bc7f7b867ab
31 31
32 /** 32 /**
33 * Access to language-specific information and execution services to enable debugging. 33 * Access to language-specific information and execution services to enable debugging.
34 */ 34 */
35 public interface DebugSupportProvider extends ToolSupportProvider { 35 public interface DebugSupportProvider extends ToolSupportProvider {
36
37 /**
38 * Runs source code.
39 *
40 * @param source code
41 * @throws DebugSupportException if unable to run successfully
42 */
43 void run(Source source) throws DebugSupportException;
44
45 /** 36 /**
46 * Runs source code in a halted execution context, or at top level. 37 * Runs source code in a halted execution context, or at top level.
47 * 38 *
48 * @param source the code to run 39 * @param source the code to run
49 * @param node node where execution halted, {@code null} if no execution context 40 * @param node node where execution halted, {@code null} if no execution context