Fix for issue 556 and 591 (#590)
* version argument in manticore * Fix 591 - Exception Handler
This commit is contained in:
parent
fccf451406
commit
ce888766cd
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user