* Remove ManticoreControl object * Some changes were brought in from dev-symbolicate-api * Add Manticore.terminate() * Add State.abandon() * Update sample scripts * Remove ctl from README * Fix tests * Bring in changes from dev-symbolicate-api * Lower-case wildcard * string -> cstring * abandon() docstring * Rename "name" to "label" * Remove obsolete comment * Make NUL a possible value for the last byte of a cstring * Fix AbandonState and add example binary&script * name -> label in tests, manticore.py * Ignore .DS_Store * Update symbolicate_buffer docstring
This commit is contained in:
@@ -21,12 +21,12 @@ if __name__ == '__main__':
|
||||
m = Manticore(None, path, args)
|
||||
|
||||
# Trigger an event when PC reaches a certain value
|
||||
def reached_goal(state):
|
||||
def reached_goal(ctx, state):
|
||||
cpu = state.cpu
|
||||
|
||||
assert cpu.pc == 0x10858
|
||||
assert cpu.PC == 0x10858
|
||||
|
||||
instruction = cpu.read(cpu.pc, 4)
|
||||
instruction = cpu.read(cpu.PC, 4)
|
||||
print "Execution goal reached."
|
||||
print "Instruction bytes: {:08x}".format(cpu.pc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user