diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-17 09:54:02 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-17 09:54:02 (GMT) | 
| commit | 6bde4016160057a22234d4ed698903dca52ce162 (patch) | |
| tree | 24847c1367b61915c65a778d4135142fcb2431b0 /src | |
| parent | d2aee5bdde7ca64fc4bb8553d98cc7d2ac92c5e5 (diff) | |
Removed debug output.
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/arm/v7/fetch.c | 29 | ||||
| -rw-r--r-- | src/arch/arm/v7/post.c | 28 | 
2 files changed, 0 insertions, 57 deletions
diff --git a/src/arch/arm/v7/fetch.c b/src/arch/arm/v7/fetch.c index 3fa6bbe..ee87178 100644 --- a/src/arch/arm/v7/fetch.c +++ b/src/arch/arm/v7/fetch.c @@ -93,10 +93,6 @@ void help_fetching_with_instruction_b_with_orig(GArchInstruction *instr, GArchPr      else assert(0); -    printf("1... 0x%x (0x%x) + 0x%x\n", -           (unsigned int)get_virt_addr(get_mrange_addr(range)), -           (unsigned int)pc, (unsigned int)offset); -      target = pc + offset;      //g_armv7_context_define_encoding(context, target, iset); @@ -160,12 +156,6 @@ void help_fetching_with_instruction_bl_with_orig(GArchInstruction *instr, GArchP      else assert(0); -    printf("2... 0x%x (0x%x) + 0x%x\n", -           (unsigned int)get_virt_addr(get_mrange_addr(range)), -           (unsigned int)pc, (unsigned int)offset); - - -      target = pc + offset;      //g_armv7_context_define_encoding(context, target, iset); @@ -219,12 +209,6 @@ void help_fetching_with_instruction_blx_with_dest(GArchInstruction *instr, GArch      else assert(0); -    printf("3... 0x%x (0x%x) + 0x%x\n", -           (unsigned int)get_virt_addr(get_mrange_addr(range)), -           (unsigned int)pc, (unsigned int)offset); - - -      target = pc + offset;      //g_armv7_context_define_encoding(context, target, iset); @@ -323,10 +307,6 @@ void help_fetching_with_instruction_cb_n_z(GArchInstruction *instr, GArchProcess      pc = get_virt_addr(get_mrange_addr(range)); - -    printf("PC :: 0x%08x\n", (unsigned int)pc); - -      /**       * En mode Thumb, pc a pour valeur l'adresse courante plus 4.       */ @@ -394,9 +374,6 @@ void help_fetching_with_instruction_ldr_literal_with_orig(GArchInstruction *inst      phys_pc &= ~3;      //phys_pc = (phys_pc + 3) & ~3; -    printf(">>>>>>> @pc @ 0x%08x\n", (unsigned int)phys_pc); - -      switch (iset)      {          case AV7IS_ARM: @@ -469,12 +446,6 @@ void help_fetching_with_instruction_ldr_literal_with_orig(GArchInstruction *inst      g_proc_context_push_new_symbol_at(G_PROC_CONTEXT(context), &sym_addr); -    printf("repush :: from 0x%x :: %x / %x\n", -           (unsigned int)get_phy_addr(get_mrange_addr(range)), -           (unsigned int)sym_addr.physical, (unsigned int)sym_addr.virtual); - - -    printf("add sym %p\n", symbol); diff --git a/src/arch/arm/v7/post.c b/src/arch/arm/v7/post.c index 9abe232..458fd7f 100644 --- a/src/arch/arm/v7/post.c +++ b/src/arch/arm/v7/post.c @@ -73,19 +73,6 @@ void post_process_ldr_instructions(GArchInstruction *instr, GArchProcessor *proc          {              addr &= ~0x1; -            do -            { -                 -                const mrange_t *_range; - -                _range = g_arch_instruction_get_range(instr); - -                printf("@ 0x%08x RESOLVING FOR 0x%08x\n", -                       (unsigned int)_range->addr.virtual, (unsigned int)addr); - - -            } while (0); -              init_mrange(&trange, &target, 0);              vmpa2_virt_to_string(&target, MDS_UNDEFINED, loc, NULL); @@ -106,21 +93,6 @@ void post_process_ldr_instructions(GArchInstruction *instr, GArchProcessor *proc              g_target_operand_resolve(G_TARGET_OPERAND(new), bfmt, true);          } -        else -             -            do -            { -                 -                const mrange_t *_range; - -                _range = g_arch_instruction_get_range(instr); - -                printf("@ 0x%08x RESOLVED FOR 0x%08x\n", -                       (unsigned int)_range->addr.virtual, (unsigned int)addr); - - -            } while (0); -          g_arch_instruction_replace_operand(instr, new, op);  | 
