From: John Gilmore Date: Sat, 13 Jun 1992 06:08:09 +0000 (+0000) Subject: Remove reg_names decl (now in defs.h). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=609f87d4c94e0a0f897727701ede20f46af7fa1b;p=binutils-gdb.git Remove reg_names decl (now in defs.h). --- diff --git a/gdb/arm-pinsn.c b/gdb/arm-pinsn.c index 240f7cb11fa..8c8b9562669 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 dcf8e221352..8e5147eac24 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 6e47839eacd..f5a9fb50fcc 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 2939328510f..993541f2557 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 2ce903ac4e5..820517368b6 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 6968c547703..3b85acad75c 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 0922ef9a316..231a43edf90 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 (®_names[4 * 8]) union sparc_insn diff --git a/gdb/tahoe-pinsn.c b/gdb/tahoe-pinsn.c index 9b16d032e31..92b0ceb7cd3 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 a0f8e9549e1..622bb8f9f7a 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,