/* Print mips instructions for GDB, the GNU debugger.
- Copyright 1989, 1991 Free Software Foundation, Inc.
- Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp)
+ Copyright 1989, 1991, 1992 Free Software Foundation, Inc.
+ Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp).
This file is part of GDB.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include <stdio.h>
-
#include "defs.h"
#include "symtab.h"
#include "opcode/mips.h"
#define NOPCODES (sizeof mips_opcodes / sizeof mips_opcodes[0])
#define MKLONG(p) *(unsigned long*)p
-
-extern char *reg_names[];
-
\f
/* subroutine */
static unsigned char *
unsigned long int l;
read_memory (memaddr, buffer, MAXLEN);
+ SWAP_TARGET_AND_HOST (buffer, MAXLEN);
for (i = 0; i < NOPCODES; i++)
{