Skip to content

Commit

Permalink
stalker-x86: attempt to implement the gum_stalker_iterator_put_chaini…
Browse files Browse the repository at this point in the history
…ng_return function
  • Loading branch information
s1341 authored and oleavr committed Feb 12, 2024
1 parent fa47431 commit c017d6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gum/backend-x86/gumstalker-x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3166,6 +3166,15 @@ gum_stalker_iterator_keep (GumStalkerIterator * self)
self->requirements = requirements;
}

void
gum_stalker_iterator_put_chaining_return (GumStalkerIterator * self)
{
GumExecBlock * block = self->exec_block;
GumGeneratorContext * gc = self->generator_context;

gum_exec_block_virtualize_ret_insn (block, gc);
}

GumMemoryAccess
gum_stalker_iterator_get_memory_access (GumStalkerIterator * self)
{
Expand Down
1 change: 1 addition & 0 deletions gum/gumstalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ GUM_API GumMemoryAccess gum_stalker_iterator_get_memory_access (
GumStalkerIterator * self);
GUM_API void gum_stalker_iterator_put_callout (GumStalkerIterator * self,
GumStalkerCallout callout, gpointer data, GDestroyNotify data_destroy);
GUM_API void gum_stalker_iterator_put_chaining_return (GumStalkerIterator * self);
GUM_API csh gum_stalker_iterator_get_capstone (GumStalkerIterator * self);

#define GUM_DECLARE_OBSERVER_INCREMENT(name) \
Expand Down

0 comments on commit c017d6c

Please sign in to comment.