comparison mx.truffle/mx_truffle.py @ 22444:c3e397ce5941

Truffle/Debugging/REPL: major reorganization post-PolyglotEngine - Discarded language-specific specializations, with one temporary, minor exception - "loadr" and "loads" commands replaced by "load", which always "steps into" - added "call" command: it invokes an exported symbol, which is needed to run "main" in SL demo - fixed failures to propagate KillException and QuitException properly - fixed usability bug in the client: "load" now sets the "selected source" - add package-info.java
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 27 Oct 2015 17:44:27 -0700
parents 2867e02e6fdb
children 5573f12b94f8
comparison
equal deleted inserted replaced
22443:2e5ac2d13d84 22444:c3e397ce5941
45 mx.run_java(vmArgs + ['-cp', mx.classpath(["TRUFFLE_API", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLLanguage"] + slArgs) 45 mx.run_java(vmArgs + ['-cp', mx.classpath(["TRUFFLE_API", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLLanguage"] + slArgs)
46 46
47 def sldebug(args): 47 def sldebug(args):
48 """run a simple command line debugger for the Simple Language""" 48 """run a simple command line debugger for the Simple Language"""
49 vmArgs, slArgs = mx.extract_VM_args(args, useDoubleDash=True) 49 vmArgs, slArgs = mx.extract_VM_args(args, useDoubleDash=True)
50 mx.run_java(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools"), "com.oracle.truffle.sl.tools.debug.SLREPLServer"] + slArgs) 50 mx.run_java(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools"), "com.oracle.truffle.sl.tools.debug.SLREPL"] + slArgs)
51 51
52 def _truffle_gate_runner(args, tasks): 52 def _truffle_gate_runner(args, tasks):
53 with Task('Truffle UnitTests', tasks) as t: 53 with Task('Truffle UnitTests', tasks) as t:
54 if t: unittest(['--suite', 'truffle', '--enable-timing', '--verbose', '--fail-fast']) 54 if t: unittest(['--suite', 'truffle', '--enable-timing', '--verbose', '--fail-fast'])
55 55