-
Notifications
You must be signed in to change notification settings - Fork 755
-
I'm testing the example hello_mips32el_linux_function_hook.py, it should allow the executable to execute its code and intercept before the function is called and after it exits, but this doesn't happen. The QL_INTERCEPT.ENTER configuration completely blocks execution by taking control.
This is the normal behavihour of executable:
$ qemu-mipsel-static -L rootfs/mips32el_linux rootfs/mips32el_linux/bin/mips32el_double_hello
hello1
hello2
here the output with script hello_mips32el_linux_function_hook.py
$ python3 hello_mips32el_linux_function_hook.py
puts("hello1")
after puts
puts("hello2")
after puts
The call to puts which print hello1 and hello2 are removed, I think is wrong.
This is the output with script hello_mips32el_linux_function_hook.py without QL_INTERCEPT.ENTER
$ python3 hello_mips32el_linux_function_hook.py
hello1
after puts
hello2
after puts
I tested with QL_INTERCEPT.CALL and I get the same output, so there is no difference between QL_INTERCEPT.ENTER and QL_INTERCEPT.CALL.
All these tests are done with latest stable 14.6 and with latest dev commit, same result.
Is it an issue or is the normal behaviour?
Beta Was this translation helpful? Give feedback.