disas: remove opcode printing on ARM hosts
Following commit 5d48e9174e
, 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>
This commit is contained in:
parent
5d48e9174e
commit
0f136d9e06
5
disas.c
5
disas.c
@ -307,11 +307,6 @@ void disas(FILE *out, void *code, unsigned long size)
|
|||||||
#endif
|
#endif
|
||||||
for (pc = (unsigned long)code; size > 0; pc += count, size -= count) {
|
for (pc = (unsigned long)code; size > 0; pc += count, size -= count) {
|
||||||
fprintf(out, "0x%08lx: ", pc);
|
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);
|
count = print_insn(pc, &disasm_info);
|
||||||
fprintf(out, "\n");
|
fprintf(out, "\n");
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user