frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
734 stars 242 forks source link

Changes to add ability to run a function on a given thread #704

Closed WorksButNotTested closed 1 year ago

WorksButNotTested commented 1 year ago

...on x86/64.

A complete rework of the original PR. https://github.com/frida/frida-gum/pull/559 This solution instead uses the Stalker backend (and its associated prologues/epilogues) to do any heavy lifting. As such the architecture specific code is tiny (see here https://github.com/MissingFuzz/frida-gum/blob/5590a49c94ee138c0c76cd35e33b953766d46a1e/gum/backend-x86/gumstalker-x86.c#L6642). Almost all of this commit is unit tests.