-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stalker: Fix block events disrupting exclusive access on arm64 (#784)
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
* Copyright (C) 2023 Håvard Sørbø <[email protected]> | ||
* Copyright (C) 2024 Francesco Tamagni <[email protected]> | ||
* Copyright (C) 2024 Alex Soler <[email protected]> | ||
* Copyright (C) 2024 Sai Cao <[email protected]> | ||
* | ||
* Licence: wxWindows Library Licence, Version 3.1 | ||
*/ | ||
|
@@ -2900,7 +2901,9 @@ gum_stalker_iterator_next (GumStalkerIterator * self, | |
|
||
self->generator_context->instruction = instruction; | ||
|
||
if (is_first_instruction && (self->exec_context->sink_mask & GUM_BLOCK) != 0) | ||
if (is_first_instruction && | ||
(self->exec_context->sink_mask & GUM_BLOCK) != 0 && | ||
(self->exec_block->flags & GUM_EXEC_BLOCK_USES_EXCLUSIVE_ACCESS) == 0) | ||
{ | ||
gum_exec_block_write_block_event_code (self->exec_block, gc, | ||
GUM_CODE_INTERRUPTIBLE); | ||
|