diff mx/commands.py @ 5245:71ac4221b1b0

added hcfdis command
author Doug Simon <doug.simon@oracle.com>
date Tue, 17 Apr 2012 13:38:28 +0200
parents 55ff4ba8d7b1
children a549662f6c6f b8661be84cfd
line wrap: on
line diff
--- 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, ''],