diff options
| author | Ajax <commial@gmail.com> | 2017-04-21 17:41:21 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-04-21 17:41:21 +0200 |
| commit | 6d9c56ea70fd28d32f56fe2467c17cd8b0748597 (patch) | |
| tree | 796481229679ecf9735cbc4ac6301008d89508dd | |
| parent | 7a9ba958c66c80b843bdd571f6989a8bb3e98dce (diff) | |
| download | miasm-6d9c56ea70fd28d32f56fe2467c17cd8b0748597.tar.gz miasm-6d9c56ea70fd28d32f56fe2467c17cd8b0748597.zip | |
Let GCC be the default jitter
| -rwxr-xr-x | example/jitter/mips32.py | 4 | ||||
| -rwxr-xr-x | example/jitter/msp430.py | 4 | ||||
| -rw-r--r-- | example/jitter/x86_32.py | 4 | ||||
| -rw-r--r-- | miasm2/analysis/sandbox.py | 4 | ||||
| -rw-r--r-- | miasm2/jitter/jitload.py | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/example/jitter/mips32.py b/example/jitter/mips32.py index 7c8900f8..c5b2f7f5 100755 --- a/example/jitter/mips32.py +++ b/example/jitter/mips32.py @@ -20,8 +20,8 @@ parser.add_argument("-n", "--log-newbloc", help="Log basic blocks processed by the Jitter", action="store_true") parser.add_argument("-j", "--jitter", - help="Jitter engine. Possible values are : tcc (default), llvm", - default="tcc") + help="Jitter engine (default is 'gcc')", + default="gcc") parser.add_argument("-d", "--debugging", help="Attach a CLI debugguer to the sandboxed programm", action="store_true") diff --git a/example/jitter/msp430.py b/example/jitter/msp430.py index 5c8b7197..b69f91c6 100755 --- a/example/jitter/msp430.py +++ b/example/jitter/msp430.py @@ -18,8 +18,8 @@ parser.add_argument("-n", "--log-newbloc", help="Log basic blocks processed by the Jitter", action="store_true") parser.add_argument("-j", "--jitter", - help="Jitter engine. Possible values are : tcc (default), llvm", - default="tcc") + help="Jitter engine (default is 'gcc')", + default="gcc") parser.add_argument("-d", "--debugging", help="Attach a CLI debugguer to the sandboxed programm", action="store_true") diff --git a/example/jitter/x86_32.py b/example/jitter/x86_32.py index 2eee1742..91244bf6 100644 --- a/example/jitter/x86_32.py +++ b/example/jitter/x86_32.py @@ -13,8 +13,8 @@ if filename and os.path.isfile(filename): parser = ArgumentParser(description="x86 32 basic Jitter") parser.add_argument("filename", help="x86 32 shellcode filename") parser.add_argument("-j", "--jitter", - help="Jitter engine. Possible values are : tcc (default), llvm", - default="tcc") + help="Jitter engine (default is 'gcc')", + default="gcc") args = parser.parse_args() def code_sentinelle(jitter): diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index 3c29ace0..44d528ac 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -88,8 +88,8 @@ class Sandbox(object): parser.add_argument('-g', "--gdbserver", type=int, help="Listen on port @port") parser.add_argument("-j", "--jitter", - help="Jitter engine. Possible values are: tcc (default), llvm, python", - default="tcc") + help="Jitter engine. Possible values are: gcc (default), tcc, llvm, python", + default="gcc") parser.add_argument( '-q', "--quiet-function-calls", action="store_true", help="Don't log function calls") diff --git a/miasm2/jitter/jitload.py b/miasm2/jitter/jitload.py index 693dd224..4760c8dd 100644 --- a/miasm2/jitter/jitload.py +++ b/miasm2/jitter/jitload.py @@ -163,12 +163,12 @@ class jitter: C_Gen = CGen - def __init__(self, ir_arch, jit_type="tcc"): + def __init__(self, ir_arch, jit_type="gcc"): """Init an instance of jitter. @ir_arch: ir instance for this architecture @jit_type: JiT backend to use. Available options are: - - "tcc" - "gcc" + - "tcc" - "llvm" - "python" """ |