Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ql.os.set_api ENTER replace the function #1431

Unanswered
et-ness asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /