From d3ea2155062131724c01d7f6727fdf90a4063b4d Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 25 Jan 2015 01:26:43 -0500 Subject: fixes --- lib/substitute.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/substitute.h') 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, -- cgit v1.2.3