Update .sanitize files
[deliverable/binutils-gdb.git] / gdb / mips-pinsn.c
index 0b3391e07b27777f4d70fc8b0fe82ced9b32fcc2..993541f2557d666c60d5474ffaabdc3979d470cf 100644 (file)
@@ -1,6 +1,6 @@
 /* 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.
 
@@ -18,8 +18,6 @@ You should have received a copy of the GNU General Public License
 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"
@@ -31,9 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define NOPCODES (sizeof mips_opcodes / sizeof mips_opcodes[0])
 
 #define MKLONG(p)  *(unsigned long*)p
-
-extern char *reg_names[];
-
 \f
 /* subroutine */
 static unsigned char *
@@ -117,6 +112,7 @@ print_insn (memaddr, stream)
   unsigned long int l;
 
   read_memory (memaddr, buffer, MAXLEN);
+  SWAP_TARGET_AND_HOST (buffer, MAXLEN);
 
   for (i = 0; i < NOPCODES; i++)
     {
This page took 0.023586 seconds and 4 git commands to generate.