Fix for issue 556 and 591 (#590)

* version argument in manticore

* Fix 591 - Exception Handler
This commit is contained in:
Srinivas P G 2017-11-22 16:18:45 -05:00 committed by Mark Mossberg
parent fccf451406
commit ce888766cd
2 changed files with 3 additions and 1 deletions

View File

@ -53,6 +53,8 @@ def parse_arguments():
parser.add_argument('--workspace', type=str, default=None,
help=("A folder name for temporaries and results."
"(default mcore_?????)"))
parser.add_argument('--version', action='version', version='Manticore 0.1.5',
help='Show program version information')
parsed = parser.parse_args(sys.argv[1:])
if parsed.procs <= 0:

View File

@ -789,7 +789,7 @@ class Cpu(Eventful):
emu = UnicornEmulator(self)
try:
emu.emulate(insn)
except e:
except Exception as e:
raise InstructionEmulationError(str(e))
finally:
# We have been seeing occasional Unicorn issues with it not clearing