]>
Commit | Line | Data |
---|---|---|
7d9884b9 | 1 | /* Print instructions for the Motorola 88000, for GDB and GNU Binutils. |
f75906eb ILT |
2 | Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1993 |
3 | Free Software Foundation, Inc. | |
7d9884b9 JG |
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. */ | |
8aa13b87 | 20 | |
8aa13b87 | 21 | #include "defs.h" |
f75906eb | 22 | #include "dis-asm.h" |
8aa13b87 | 23 | |
f75906eb ILT |
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. */ | |
8aa13b87 | 27 | |
f75906eb | 28 | int |
8aa13b87 JK |
29 | print_insn (memaddr, stream) |
30 | CORE_ADDR memaddr; | |
31 | FILE *stream; | |
32 | { | |
f75906eb | 33 | disassemble_info info; |
8aa13b87 | 34 | |
f75906eb | 35 | GDB_INIT_DISASSEMBLE_INFO (info, stream); |
8aa13b87 | 36 | |
f75906eb ILT |
37 | /* print_insn_m88k is in opcodes/m88k-dis.c. */ |
38 | return print_insn_m88k ((bfd_vma) memaddr, &info); | |
8aa13b87 | 39 | } |