Search
lxdream.org :: lxdream/src/x86dasm/x86dasm.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/x86dasm.c
changeset 1091:186558374345
prev1087:d54c499b48c7
next1092:7c4ffe27e7b5
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (11 years ago)
permissions -rw-r--r--
last change Add side-by-side x86+sh4 disassembly output
Print SH4 state information and disassembly of the current block when
crashing.
Fix delay slot instruction in conditional branch not being marked as a
delay-slot instruction in the branch-not-taken path.
Rename REG_* defines in cpu.h to avoid conflict with translation defs
file annotate diff log raw
1.1 --- a/src/x86dasm/x86dasm.c Fri Dec 04 08:44:22 2009 +1000
1.2 +++ b/src/x86dasm/x86dasm.c Tue Dec 15 08:46:37 2009 +1000
1.3 @@ -65,7 +65,7 @@
1.4 }
1.5 }
1.6
1.7 -void x86_disasm_init(unsigned char *buf, uintptr_t vma, int buflen)
1.8 +void x86_disasm_init()
1.9 {
1.10 init_disassemble_info( &x86_disasm_info, NULL, x86_disasm_output );
1.11 x86_disasm_info.arch = bfd_arch_i386;
1.12 @@ -75,9 +75,9 @@
1.13 x86_disasm_info.mach = bfd_mach_i386_i386_intel_syntax;
1.14 #endif
1.15 x86_disasm_info.endian = BFD_ENDIAN_LITTLE;
1.16 - x86_disasm_info.buffer = buf;
1.17 - x86_disasm_info.buffer_vma = vma;
1.18 - x86_disasm_info.buffer_length = buflen;
1.19 + x86_disasm_info.buffer = 0;
1.20 + x86_disasm_info.buffer_vma = 0;
1.21 + x86_disasm_info.buffer_length = -1;
1.22 x86_disasm_info.print_address_func = x86_print_address;
1.23 }
1.24
.