How to monitor the execution instruction record of the specified memory area
such as:
moduleBase = 0x400000
moduleSize = 0x13000
# xip -> eip/rip
# ins -> Current xip assembly instructions
def ins_trace(Xip,Ins):
if Xip >= moduleBase and Xip < (moduleBase + moduleSize):
print(Xip, Ins)
Is there any callback can do it?
best regards