summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-10-12 13:26:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-10-12 13:26:20 (GMT)
commite75f44a99c8f984af4c47fa9a2c8e7e9841700d8 (patch)
tree95f829cf9737cfc37aaa2f1716528ece3c4efdeb /src
parent7fa2dc35ccd305da5a4896a4de8086c0f4db4fca (diff)
Disabled or removed some debug code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@413 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/v7/arm.c10
-rw-r--r--src/arch/arm/v7/processor.c5
2 files changed, 4 insertions, 11 deletions
diff --git a/src/arch/arm/v7/arm.c b/src/arch/arm/v7/arm.c
index bd1beb8..5295ef8 100644
--- a/src/arch/arm/v7/arm.c
+++ b/src/arch/arm/v7/arm.c
@@ -188,9 +188,6 @@ static GArchInstruction *process_armv7_data_processing_and_miscellaneous_instruc
result = NULL;
- if (raw == 0xe1a0000a)
- printf(" ---> data proc & misc\n");
-
op = (raw >> 25) & 0x1;
op1 = (raw >> 20) & 0x1f;
op2 = (raw >> 4) & 0xf;
@@ -314,9 +311,6 @@ static GArchInstruction *process_armv7_data_processing_register(uint32_t raw)
result = NULL;
- if (raw == 0xe1a0000a)
- printf(" ---> data proc register !\n");
-
op = (raw >> 20) & 0x1f;
imm5 = (raw >> 7) & 0x1f;
op2 = (raw >> 5) & 0x3;
@@ -370,11 +364,7 @@ static GArchInstruction *process_armv7_data_processing_register(uint32_t raw)
if (op2 == b00)
{
if (imm5 == b00000)
- {
result = armv7_read_instr_mov_register_arm(raw);
- if (raw == 0xe1a0000a)
- printf(" ----> GOT IT :: %p\n", result);
- }
else
result = armv7_read_instr_lsl_immediate(raw);
diff --git a/src/arch/arm/v7/processor.c b/src/arch/arm/v7/processor.c
index dd2f39f..4292672 100644
--- a/src/arch/arm/v7/processor.c
+++ b/src/arch/arm/v7/processor.c
@@ -226,8 +226,10 @@ static GArchInstruction *g_armv7_processor_disassemble(const GArmV7Processor *pr
if (!read_u32(&raw, data, &start, end, G_ARCH_PROCESSOR(proc)->endianness))
return NULL;
+ /*
if (raw == 0xe1a0000a)
printf("process @ 0x%x :: 0x%08x\n", start, raw);
+ */
/*
if (raw == 0xe1a0000a)
@@ -239,9 +241,10 @@ static GArchInstruction *g_armv7_processor_disassemble(const GArmV7Processor *pr
result = process_armv7_instruction_set_encoding(raw);
+ /*
if (raw == 0xe1a0000a)
printf(" --> %p\n", result);
-
+ */
if (result != NULL)