From eb93cee2a22cde812ccd6b9bd418d36185c058f5 Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 8 Feb 2015 23:45:24 -0500 Subject: 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. --- lib/transform-dis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/transform-dis.h') 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 #include +#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); -- cgit v1.2.3