MCPcopy Create free account
hub / github.com/qilingframework/qiling / trace_cb

Function trace_cb

examples/windows_trace.py:90–99  ·  view source on GitHub ↗
(ql: Qiling, address: int, size: int, count)

Source from the content-addressed store, hash-verified

88
89
90def 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
102def emulate(path, rootfs, verbose=QL_VERBOSE.DEBUG, enable_trace=False):

Callers

nothing calls this directly

Calls 3

dump_regsFunction · 0.85
formatMethod · 0.80
disasmFunction · 0.70

Tested by

no test coverage detected