ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/mon_disass.cpp
(Generate patch)

Comparing mon/src/mon_disass.cpp (file contents):
Revision 1.5 by cebix, 2002-01-18T16:03:33Z vs.
Revision 1.6 by gbeauche, 2002-09-07T12:48:15Z

# Line 40 | Line 40 | bool mon_macos_mode = false;
40   extern "C" {
41   #include "disass/dis-asm.h"
42  
43 < int buffer_read_memory(bfd_vma from, bfd_byte *to, int length, struct disassemble_info *info)
43 > int buffer_read_memory(bfd_vma from, bfd_byte *to, unsigned int length, struct disassemble_info *info)
44   {
45          while (length--)
46                  *to++ = mon_read_byte(from++);
# Line 166 | Line 166 | int disass_68k(FILE *f, uint32 adr)
166          return num;
167   }
168  
169 < int disass_x86(FILE *f, uint32 adr, bool i8086)
169 > int disass_x86(FILE *f, uint32 adr, uint32 bits)
170   {
171          // Initialize info for GDB disassembler
172          disassemble_info info;
# Line 175 | Line 175 | int disass_x86(FILE *f, uint32 adr, bool
175          sfile.buffer = buf;
176          sfile.current = buf;
177          INIT_DISASSEMBLE_INFO(info, (FILE *)&sfile, (fprintf_ftype)mon_sprintf);
178 <        if (i8086)
178 >        if (bits == 16)
179                  info.mach = bfd_mach_i386_i8086;
180 +        else if (bits == 64)
181 +                info.mach = bfd_mach_x86_64;
182  
183          // Disassemble instruction
184          lookup_lowmem = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines