# HG changeset patch # User Doug Simon # Date 1334662708 -7200 # Node ID 71ac4221b1b008f431d5bd466d5dc27bad55b87c # Parent 55ff4ba8d7b154b3fb6c651086dba985558d51ec added hcfdis command diff -r 55ff4ba8d7b1 -r 71ac4221b1b0 mx/commands.py --- a/mx/commands.py Fri Apr 13 23:57:07 2012 +0200 +++ b/mx/commands.py Tue Apr 17 13:38:28 2012 +0200 @@ -944,6 +944,16 @@ if not exists(path): mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) +def hcfdis(args): + """disassembles HexCodeFiles embedded in text files + + Run a tool over the input files to convert all embedded HexCodeFiles + to a disassembled format.""" + path = join(_graal_home, 'lib', 'hcfdis.jar') + if not exists(path): + mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hcfdis.jar']) + mx.run_java(['-jar', path] + args) + def jacocoreport(args): """creates a JaCoCo coverage report @@ -964,6 +974,7 @@ 'buildvms': [buildvms, '[-options]'], 'clean': [clean, ''], 'hsdis': [hsdis, '[att]'], + 'hcfdis': [hcfdis, ''], 'igv' : [igv, ''], 'intro': [intro, ''], 'jdkhome': [jdkhome, ''],