disas: remove opcode printing on ARM hosts
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 12 Jan 2011 13:55:36 +0000 (14:55 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 12 Jan 2011 14:12:58 +0000 (15:12 +0100)
Following commit 5d48e9174e3bfa8655e1dc8f80887acd9040b427, it's possible
to remove the hack that used to display the opcodes on ARM hosts only.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
disas.c

diff --git a/disas.c b/disas.c
index dd2db142d764c25fecdb761e4ee0b5c322a82e04..c76f36f590a1e77fe82b2184b1f6d5db718b9b64 100644 (file)
--- a/disas.c
+++ b/disas.c
@@ -307,11 +307,6 @@ void disas(FILE *out, void *code, unsigned long size)
 #endif
     for (pc = (unsigned long)code; size > 0; pc += count, size -= count) {
        fprintf(out, "0x%08lx:  ", pc);
-#ifdef __arm__
-        /* since data is included in the code, it is better to
-           display code data too */
-        fprintf(out, "%08x  ", (int)bfd_getl32((const bfd_byte *)pc));
-#endif
        count = print_insn(pc, &disasm_info);
        fprintf(out, "\n");
        if (count < 0)