home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / GDB / GDB-4.13 / GDB-4 / gdb-4.13 / gdb / m88k-pinsn.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-01  |  1.3 KB  |  40 lines

  1. /* Print instructions for the Motorola 88000, for GDB and GNU Binutils.
  2.    Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1993
  3.    Free Software Foundation, Inc.
  4.  
  5. This file is part of GDB and the GNU Binutils.
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #include "defs.h"
  22. #include "dis-asm.h"
  23.  
  24. /* Print the m88k instruction at address MEMADDR in debugged memory,
  25.    on STREAM.  Returns length of the instruction, in bytes, which
  26.    is always 4.  */
  27.  
  28. int
  29. print_insn (memaddr, stream)
  30.      CORE_ADDR memaddr;
  31.      GDB_FILE *stream;
  32. {
  33.   disassemble_info info;
  34.  
  35.   GDB_INIT_DISASSEMBLE_INFO (info, stream);
  36.  
  37.   /* print_insn_m88k is in opcodes/m88k-dis.c.  */
  38.   return print_insn_m88k ((bfd_vma) memaddr, &info);
  39. }
  40.