aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/arm-pinsn.c4
-rw-r--r--gdb/i960-pinsn.c4
-rw-r--r--gdb/m68k-pinsn.c6
-rw-r--r--gdb/mips-pinsn.c5
-rw-r--r--gdb/ns32k-pinsn.c4
-rw-r--r--gdb/pyr-pinsn.c12
-rw-r--r--gdb/sparc-pinsn.c5
-rw-r--r--gdb/tahoe-pinsn.c4
-rw-r--r--gdb/vax-pinsn.c4
9 files changed, 14 insertions, 34 deletions
diff --git a/gdb/arm-pinsn.c b/gdb/arm-pinsn.c
index 240f7cb..8c8b956 100644
--- a/gdb/arm-pinsn.c
+++ b/gdb/arm-pinsn.c
@@ -1,5 +1,5 @@
/* Print Acorn Risc Machine instructions for GDB, the GNU debugger.
- Copyright 1986, 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -24,8 +24,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "symtab.h"
#include "opcode/arm.h"
-extern char *reg_names[];
-
static char *shift_names[] = {
"lsl", "lsr", "asr", "ror",
};
diff --git a/gdb/i960-pinsn.c b/gdb/i960-pinsn.c
index dcf8e22..8e5147e 100644
--- a/gdb/i960-pinsn.c
+++ b/gdb/i960-pinsn.c
@@ -1,5 +1,5 @@
/* i80960 instruction disassembler for GDB.
- Copyright (C) 1990-1991 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,8 +21,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "frame.h"
#include "inferior.h"
-extern char *reg_names[];
-
static FILE *stream; /* Output goes here */
static void print_addr();
static void ctrl();
diff --git a/gdb/m68k-pinsn.c b/gdb/m68k-pinsn.c
index 6e47839..f5a9fb5 100644
--- a/gdb/m68k-pinsn.c
+++ b/gdb/m68k-pinsn.c
@@ -44,9 +44,9 @@ print_insn_arg PARAMS ((char *, unsigned char *, unsigned char *, CORE_ADDR,
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof m68k_opcodes / sizeof m68k_opcodes[0])
-extern char *reg_names[];
-char *fpcr_names[] = { "", "fpiar", "fpsr", "fpiar/fpsr", "fpcr",
- "fpiar/fpcr", "fpsr/fpcr", "fpiar-fpcr"};
+const char * const fpcr_names[] = {
+ "", "fpiar", "fpsr", "fpiar/fpsr", "fpcr",
+ "fpiar/fpcr", "fpsr/fpcr", "fpiar-fpcr"};
/* Define accessors for 68K's 1, 2, and 4-byte signed quantities.
The _SHIFT values move the quantity to the high order end of an
diff --git a/gdb/mips-pinsn.c b/gdb/mips-pinsn.c
index 2939328..993541f 100644
--- a/gdb/mips-pinsn.c
+++ b/gdb/mips-pinsn.c
@@ -1,6 +1,6 @@
/* Print mips instructions for GDB, the GNU debugger.
Copyright 1989, 1991, 1992 Free Software Foundation, Inc.
- Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp)
+ Contributed by Nobuyuki Hikichi(hikichi@sra.co.jp).
This file is part of GDB.
@@ -29,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[];
-
/* subroutine */
static unsigned char *
diff --git a/gdb/ns32k-pinsn.c b/gdb/ns32k-pinsn.c
index 2ce903a..8205173 100644
--- a/gdb/ns32k-pinsn.c
+++ b/gdb/ns32k-pinsn.c
@@ -1,5 +1,5 @@
/* Print National Semiconductor 32000 instructions for GDB, the GNU debugger.
- Copyright 1986, 1988, 1991 Free Software Foundation, Inc.
+ Copyright 1986, 1988, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -28,8 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof notstrs / sizeof notstrs[0])
-extern char *reg_names[];
-
#define NEXT_IS_ADDR '|'
/*
diff --git a/gdb/pyr-pinsn.c b/gdb/pyr-pinsn.c
index 6968c54..3b85aca 100644
--- a/gdb/pyr-pinsn.c
+++ b/gdb/pyr-pinsn.c
@@ -1,7 +1,7 @@
/* Print Pyramid Technology 90x instructions for GDB, the GNU Debugger.
- Copyright 1988, 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
-This file is part of GDB, the GNU disassembler.
+This file is part of GDB, the GNU debugger.
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
@@ -51,7 +51,6 @@ CORE_ADDR pyr_saved_pc(frame)
frame, 60/4, foo);
return foo;
}
-
/* Pyramid instructions are never longer than this many bytes. */
#define MAXLEN 24
@@ -60,15 +59,10 @@ CORE_ADDR pyr_saved_pc(frame)
/*const*/ static int nopcodes = (sizeof (pyr_opcodes) / sizeof( pyr_opcodes[0]));
#define NOPCODES (nopcodes)
-extern char *reg_names[];
-
-/* Let's be byte-independent so we can use this as a cross-assembler.
- (will this ever be useful?
- */
+/* Let's be byte-independent so we can use this as a cross-assembler. */
#define NEXTLONG(p) \
(p += 4, (((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1])
-
/* Print one instruction at address MEMADDR in debugged memory,
on STREAM. Returns length of the instruction, in bytes. */
diff --git a/gdb/sparc-pinsn.c b/gdb/sparc-pinsn.c
index 0922ef9..231a43e 100644
--- a/gdb/sparc-pinsn.c
+++ b/gdb/sparc-pinsn.c
@@ -1,7 +1,7 @@
/* Print SPARC instructions for GDB, the GNU Debugger.
- Copyright 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1989, 1991, 1992 Free Software Foundation, Inc.
-This file is part of GDB, the GNU disassembler.
+This file is part of GDB, the GNU debugger.
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
@@ -24,7 +24,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "string.h"
#include "target.h"
-extern char *reg_names[];
#define freg_names (&reg_names[4 * 8])
union sparc_insn
diff --git a/gdb/tahoe-pinsn.c b/gdb/tahoe-pinsn.c
index 9b16d03..92b0ceb 100644
--- a/gdb/tahoe-pinsn.c
+++ b/gdb/tahoe-pinsn.c
@@ -1,5 +1,5 @@
/* Print instructions for Tahoe target machines, for GDB.
- Copyright 1986, 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
Contributed by the State University of New York at Buffalo, by the
Distributed Computer Systems Lab, Department of Computer Science, 1991.
@@ -29,8 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof votstrs / sizeof votstrs[0])
-extern char *reg_names[];
-
static unsigned char *print_insn_arg ();
/* Print the Tahoe instruction at address MEMADDR in debugged memory,
diff --git a/gdb/vax-pinsn.c b/gdb/vax-pinsn.c
index a0f8e95..622bb8f 100644
--- a/gdb/vax-pinsn.c
+++ b/gdb/vax-pinsn.c
@@ -1,5 +1,5 @@
/* Print VAX instructions for GDB, the GNU debugger.
- Copyright 1986, 1989, 1991 Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
This file is part of GDB.
@@ -27,8 +27,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof votstrs / sizeof votstrs[0])
-extern char *reg_names[];
-
static unsigned char *print_insn_arg ();
/* Print the vax instruction at address MEMADDR in debugged memory,