Triton icon indicating copy to clipboard operation
Triton copied to clipboard

Pass execCallbacks argument from Python binding

Open hexpell opened this issue 3 years ago • 4 comments

When I'm in read memory callback for example, I want to set the concrete memory value without triggering the memory write callback I registered. It would be useful if the Python binding has the execCallbacks parameter for me to specify this behavior.

hexpell avatar Aug 01 '22 06:08 hexpell

You may define a global variable for that purpose.

SweetVishnya avatar Aug 01 '22 07:08 SweetVishnya

It would be useful if the Python binding has the execCallbacks parameter for me to specify this behavior.

Indeed. I'm in vacation atm but as soon as I came back I will add this feature. Meanwhile, maybe you can try what @SweetVishnya suggest?

JonathanSalwan avatar Aug 01 '22 07:08 JonathanSalwan

Yes, I'm already using a global variable as workaround, but since this may be a helpful feature, and already available in C++, I thought would be nice to have in Python binding too.

hexpell avatar Aug 01 '22 15:08 hexpell

You could consider spending a few minutes adding it to the python bindings and sending a pull request 😉

mrexodia avatar Aug 01 '22 18:08 mrexodia

merged

JonathanSalwan avatar Aug 13 '22 09:08 JonathanSalwan