diff options
Diffstat (limited to 'lib/substitute.h')
-rw-r--r-- | lib/substitute.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/substitute.h b/lib/substitute.h index 250106b..2aa7ed8 100644 --- a/lib/substitute.h +++ b/lib/substitute.h @@ -51,6 +51,14 @@ enum { * SUBSTITUTE_DONT_STOP_THREADS */ SUBSTITUTE_ERR_NOT_ON_MAIN_THREAD, + /* substitute_hook_functions: when trying to patch the PC of other threads + * (in case they were inside the patched prolog when they were suspended), + * found a PC that was in the patch region but seemingly not at an + * instruction boundary + * The hooks were otherwise completed, but the thread in question will + * probably crash now that its code has changed under it. */ + SUBSTITURE_ERR_UNEXPECTED_PC_ON_OTHER_THREAD, + /* substitute_hook_functions: destination was out of range, and mmap * wouldn't give us a trampoline in range */ SUBSTITUTE_ERR_OUT_OF_RANGE, |