/* 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.
#include "symtab.h"
#include "opcode/arm.h"
-extern char *reg_names[];
-
static char *shift_names[] = {
"lsl", "lsr", "asr", "ror",
};
/* 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.
#include "frame.h"
#include "inferior.h"
-extern char *reg_names[];
-
static FILE *stream; /* Output goes here */
static void print_addr();
static void ctrl();
/* 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
/* 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.
#define NOPCODES (sizeof mips_opcodes / sizeof mips_opcodes[0])
#define MKLONG(p) *(unsigned long*)p
-
-extern char *reg_names[];
-
\f
/* subroutine */
static unsigned char *
/* 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.
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof notstrs / sizeof notstrs[0])
-extern char *reg_names[];
-
#define NEXT_IS_ADDR '|'
/*
/* 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
frame, 60/4, foo);
return foo;
}
-\f
/* Pyramid instructions are never longer than this many bytes. */
#define MAXLEN 24
/*const*/ static int nopcodes = (sizeof (pyr_opcodes) / sizeof( pyr_opcodes[0]));
#define NOPCODES (nopcodes)
-extern char *reg_names[];
-\f
-/* 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])
-
\f
/* Print one instruction at address MEMADDR in debugged memory,
on STREAM. Returns length of the instruction, in bytes. */
/* 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
#include "string.h"
#include "target.h"
-extern char *reg_names[];
#define freg_names (®_names[4 * 8])
union sparc_insn
/* 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.
/* 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,
/* 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.
/* Number of elements in the opcode table. */
#define NOPCODES (sizeof votstrs / sizeof votstrs[0])
-extern char *reg_names[];
-
static unsigned char *print_insn_arg ();
\f
/* Print the vax instruction at address MEMADDR in debugged memory,