From 5d0734a7d74cf01b73303aeb884b719b4b220035 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 31 Mar 1993 21:43:25 +0000 Subject: provide a new interface (using read_memory_func) to call the disassemblers which copes with errors in a plausible way --- gdb/m68k-pinsn.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'gdb/m68k-pinsn.c') diff --git a/gdb/m68k-pinsn.c b/gdb/m68k-pinsn.c index 01bbd92..321ff5d 100644 --- a/gdb/m68k-pinsn.c +++ b/gdb/m68k-pinsn.c @@ -20,9 +20,6 @@ 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 - /* Print the m68k instruction at address MEMADDR in debugged memory, on STREAM. Returns length of the instruction, in bytes. */ @@ -31,16 +28,9 @@ print_insn (memaddr, stream) CORE_ADDR memaddr; 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); } -- cgit v1.1