* target.h: Add enum target_waitkind, enum target_signal, and
[deliverable/binutils-gdb.git] / gdb / m68k-pinsn.c
index 01bbd926ccf1fa6f59cab0192dd7f72e3ae4700e..0eeb9ef286432c5071cca3b6e9df510888085448 100644 (file)
@@ -20,27 +20,17 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "defs.h"
 #include "dis-asm.h"
 
-/* m68k instructions are never longer than this many bytes.  */
-#define MAXLEN 22
-\f
 /* Print the m68k instruction at address MEMADDR in debugged memory,
    on STREAM.  Returns length of the instruction, in bytes.  */
 
 int
 print_insn (memaddr, stream)
      CORE_ADDR memaddr;
-     FILE *stream;
+     GDB_FILE *stream;
 {
-  unsigned char buffer[MAXLEN];
-  register int i;
-  register unsigned char *p;
-  register char *d;
-  register int bestmask;
-  int best;
   disassemble_info info;
 
   GDB_INIT_DISASSEMBLE_INFO(info, stream);
 
-  read_memory (memaddr, (char *) buffer, MAXLEN);
-  return print_insn_m68k (memaddr, buffer, &info);
+  return print_insn_m68k (memaddr, &info);
 }
This page took 0.02333 seconds and 4 git commands to generate.