From 609f87d4c94e0a0f897727701ede20f46af7fa1b Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 13 Jun 1992 06:08:09 +0000 Subject: [PATCH] Remove reg_names decl (now in defs.h). --- gdb/arm-pinsn.c | 4 +--- gdb/i960-pinsn.c | 4 +--- gdb/m68k-pinsn.c | 6 +++--- gdb/mips-pinsn.c | 5 +---- gdb/ns32k-pinsn.c | 4 +--- gdb/pyr-pinsn.c | 12 +++--------- gdb/sparc-pinsn.c | 5 ++--- gdb/tahoe-pinsn.c | 4 +--- gdb/vax-pinsn.c | 4 +--- 9 files changed, 14 insertions(+), 34 deletions(-) diff --git a/gdb/arm-pinsn.c b/gdb/arm-pinsn.c index 240f7cb11f..8c8b956266 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 dcf8e22135..8e5147eac2 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 6e47839eac..f5a9fb50fc 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 2939328510..993541f255 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 2ce903ac4e..820517368b 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 6968c54770..3b85acad75 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 0922ef9a31..231a43edf9 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 9b16d032e3..92b0ceb7cd 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 a0f8e9549e..622bb8f9f7 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, -- 2.34.1