aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute.h
diff options
context:
space:
mode:
authorcomex2015-01-25 01:26:43 -0500
committercomex2015-01-25 01:26:43 -0500
commitd3ea2155062131724c01d7f6727fdf90a4063b4d (patch)
tree6b3d4989b4f7ff9df464c8c18fffce488673274f /lib/substitute.h
parentfixes (diff)
downloadsubstitute-d3ea2155062131724c01d7f6727fdf90a4063b4d.tar.gz
fixes
Diffstat (limited to '')
-rw-r--r--lib/substitute.h8
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,