diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-11-20 16:34:57 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-11-20 16:34:57 +0100 |
| commit | a5397cee9bacc81224f786f9a62adf3de5c99c87 (patch) | |
| tree | d7aa5357a78155e38ac91911f4f6ae9f12942810 /miasm2/analysis/sandbox.py | |
| parent | e8176768c80889671c669f777c8bee5ff9820a62 (diff) | |
| parent | fb593e870b922ca9cfb15848881e8e00be259a22 (diff) | |
| download | miasm-a5397cee9bacc81224f786f9a62adf3de5c99c87.tar.gz miasm-a5397cee9bacc81224f786f9a62adf3de5c99c87.zip | |
Merge feature-log-function-call
Diffstat (limited to 'miasm2/analysis/sandbox.py')
| -rw-r--r-- | miasm2/analysis/sandbox.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index 9c7bd8e3..cbaf1394 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -1,4 +1,5 @@ import os, sys +import logging from argparse import ArgumentParser from miasm2.analysis.machine import Machine from miasm2.jitter.jitload import vm_load_pe, preload_pe, libimp @@ -56,6 +57,9 @@ class Sandbox(object): self.jitter.jit.log_mn = True self.jitter.jit.log_regs = True + if not self.options.quiet_function_calls: + self.machine.log_jit.setLevel(logging.DEBUG) + if self.options.dumpblocs: self.jitter.jit.log_newbloc = True @@ -82,6 +86,8 @@ class Sandbox(object): parser.add_argument("-j", "--jitter", help="Jitter engine. Possible values are: tcc (default), llvm, python", default="tcc") + parser.add_argument('-q', "--quiet-function-calls", action="store_true", + help="Don't log function calls") for base_cls in cls._classes_(): base_cls.update_parser(parser) |