diff options
author | comex | 2015-01-24 20:04:20 -0500 |
---|---|---|
committer | comex | 2015-01-24 20:06:46 -0500 |
commit | d89af8f6d5f3b971dda663081c03d790437c2f03 (patch) | |
tree | 2c17f0247ff3eef7d4338cadb069b1334ba785c6 /lib/hook-functions.c | |
parent | Current version of generic-dis-*, for posterity (I'm sure it'll need to be ch... (diff) | |
download | substitute-d89af8f6d5f3b971dda663081c03d790437c2f03.tar.gz |
Add function to deal with mprotecting RW and back. A bit more complex than the minimum would be...
(and minor build fixes)
Diffstat (limited to '')
-rw-r--r-- | lib/hook-functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hook-functions.c b/lib/hook-functions.c index 975520e..e20f069 100644 --- a/lib/hook-functions.c +++ b/lib/hook-functions.c @@ -1,5 +1,7 @@ #include "substitute.h" #include "substitute-internal.h" +#include "execmem.h" +#include "stop-other-threads.h" static uintptr_t patch_callback(UNUSED void *ctx, uintptr_t pc) { printf("patch_callback: pc=%llx\n", (long long) pc); |