Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain the number of arguments along with their data types? #983

Open
xiejingwei opened this issue Jan 9, 2025 · 0 comments
Open

Comments

@xiejingwei
Copy link

xiejingwei commented Jan 9, 2025

The interface gum_invocation_context_get_nth_argument can be leveraged to obtain the argument only if we know the index and the data type of the parameter.

The problem is, how can I access the two things while the program is running?

If I attach lots of functions on a single listener, and assume I can't figure out the exact one within the _on_enter interface. How can I print all the arguments of the functions I attached within the _on_enter interface?


Update: What if the target function is variadic? How to print all its arguments in a elegant way within the running program?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant