From 9fbf8080fb308d9c6dad8c534ad8892c2d715087 Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 21 Jan 2015 17:02:52 -0500 Subject: minor cleanup - stop caring about thumb outside of arch-specific code (and fix makefile bug where files whose names contained 'arm' would always be ldid'd) --- lib/jump-dis.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/jump-dis.c') diff --git a/lib/jump-dis.c b/lib/jump-dis.c index 2a4f94c..5e06460 100644 --- a/lib/jump-dis.c +++ b/lib/jump-dis.c @@ -25,7 +25,6 @@ struct jump_dis_ctx { uintptr_t pc; uintptr_t pc_patch_start; uintptr_t pc_patch_end; - bool pc_low_bit; unsigned op; const void *ptr; int op_size; @@ -119,15 +118,15 @@ static INLINE UNUSED void jump_dis_bad(struct jump_dis_ctx *ctx) { static void jump_dis_dis(struct jump_dis_ctx *ctx); -bool jump_dis_main(const void *code_ptr, uintptr_t pc_patch_start, - uintptr_t pc_patch_end, bool pc_low_bit) { +bool jump_dis_main(void *code_ptr, uintptr_t pc_patch_start, uintptr_t pc_patch_end, + struct arch_dis_ctx initial_dis_ctx) { bool ret; struct jump_dis_ctx ctx; memset(&ctx, 0, sizeof(ctx)); ctx.pc_patch_start = pc_patch_start; ctx.pc_patch_end = pc_patch_end; - ctx.pc_low_bit = pc_low_bit; ctx.pc = pc_patch_end; + ctx.arch = initial_dis_ctx; while (1) { ctx.bad_insn = false; ctx.continue_after_this_insn = true; -- cgit v1.2.3