qiling icon indicating copy to clipboard operation
qiling copied to clipboard

Get backtrace when hook_block is triggered

Open lclin56 opened this issue 2 years ago • 1 comments

I want to get the backtrace of the target process at the hook point, does qiling currently have this feature?

lclin56 avatar Mar 10 '23 02:03 lclin56

Not directly, but you can implement it farily easily.

If were to do that, I would probably use hook_code to record a tail of instructions (deque will be excellent for that), or any other context I might need, and then emit it once emulation hits the hook_block callback.

elicn avatar Mar 12 '23 13:03 elicn