Function
trace_cb
(ql: Qiling, address: int, size: int, count)
Source from the content-addressed store, hash-verified
| 88 | |
| 89 | |
| 90 | def trace_cb(ql: Qiling, address: int, size: int, count): |
| 91 | rtn = '{:100s}'.format(disasm(count, ql, address, size)) |
| 92 | if args.reg: |
| 93 | try: |
| 94 | rtn += dump_regs(ql) |
| 95 | except: |
| 96 | import traceback |
| 97 | print(traceback.format_exc()) |
| 98 | print(rtn) |
| 99 | count[0] += 1 |
| 100 | |
| 101 | |
| 102 | def emulate(path, rootfs, verbose=QL_VERBOSE.DEBUG, enable_trace=False): |
Callers
nothing calls this directly
Tested by
no test coverage detected