aboutsummaryrefslogtreecommitdiff
path: root/lib/transform-dis.h
diff options
context:
space:
mode:
authorcomex2015-02-08 23:45:24 -0500
committercomex2015-02-08 23:45:24 -0500
commiteb93cee2a22cde812ccd6b9bd418d36185c058f5 (patch)
tree43a22ccf021a1513dba3a9c99f7b81822fe950fa /lib/transform-dis.h
parentformatting (diff)
downloadsubstitute-eb93cee2a22cde812ccd6b9bd418d36185c058f5.tar.gz
Refactor disassembly so x86 works, and add x86 transform-dis.
This patch is a monolithic mess, because I was too lazy to do the refactor first (that would require some stash fun, since I wasn't actually sure before doing x86 transform-dis what would be needed). Anyway, the resulting code should be cleaner - less duplication. This breaks ARM/ARM64.
Diffstat (limited to '')
-rw-r--r--lib/transform-dis.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/transform-dis.h b/lib/transform-dis.h
index 70fe57a..c1de937 100644
--- a/lib/transform-dis.h
+++ b/lib/transform-dis.h
@@ -1,10 +1,11 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
+#include stringify(TARGET_DIR/arch-dis.h)
int transform_dis_main(const void *restrict code_ptr,
void **restrict rewritten_ptr_ptr,
- uintptr_t pc_patch_start,
- uintptr_t *pc_patch_end_p,
+ uint_tptr pc_patch_start,
+ uint_tptr *pc_patch_end_p,
struct arch_dis_ctx *arch_ctx_p,
int *offset_by_pcdiff);