* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
[deliverable/binutils-gdb.git] / gdb / i386-pinsn.c
index 6c88de9100aa2097dad91054f87d4b9abd1427ee..c11ee49a740dc675afef4bb09dc75e1fda6eb7c9 100644 (file)
@@ -20,26 +20,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "defs.h"
 #include "dis-asm.h"
 
-#define MAXLEN 20
 \f
-/* Print the m68k instruction at address MEMADDR in debugged memory,
+/* Print the 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_i386 (memaddr, buffer, &info);
+  return print_insn_i386 (memaddr, &info);
 }
This page took 0.023372 seconds and 4 git commands to generate.