Update .sanitize files
[deliverable/binutils-gdb.git] / gdb / i960-pinsn.c
index ea3fa64c90bd9ff527b081dbb0cd930aecf17780..7d3f4917d0ef08a40752ed026f30cdc42653f733 100644 (file)
@@ -1,14 +1,26 @@
-/* Disassemble i80960 instructions.
- */
+/* i80960 instruction disassembler for GDB.
+   Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
+
+This file is part of GDB.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+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 "param.h"
 #include "frame.h"
 #include "inferior.h"
 
-extern char *reg_names[];
-
 static FILE *stream;           /* Output goes here */
 static void print_addr();
 static void ctrl();
@@ -316,7 +328,7 @@ mem( memaddr, word1, word2, noprint )
        int len;
        int mode;
        int offset;
-       char *reg1, *reg2, *reg3;
+       const char *reg1, *reg2, *reg3;
 
        /* This lookup table is too sparse to make it worth typing in, but not
         * so large as to make a sparse array necessary.  We allocate the
@@ -810,7 +822,7 @@ invalid( word1 )
 static void
 print_addr(a)
 {
-       fprintf( stream, "0x%x", a );
+       print_address (a, stream);
 }
 
 static void
This page took 0.024087 seconds and 4 git commands to generate.