* tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and

READ_MIPS_FORMAT, which have been unused since BFD.  Still
remaining is COFF_NO_LONG_FILE_NAMES.
* tm-sun3.h, tm-altos.h:  Remove detritus accidentally left from
function calling code moved to m68k-tdep.c.
This commit is contained in:
John Gilmore 1991-11-07 13:14:59 +00:00
parent a297b8cead
commit fbcb509562
26 changed files with 41 additions and 178 deletions

View File

@ -1,3 +1,11 @@
Thu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com)
* tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
READ_MIPS_FORMAT, which have been unused since BFD. Still
remaining is COFF_NO_LONG_FILE_NAMES.
* tm-sun3.h, tm-altos.h: Remove detritus accidentally left from
function calling code moved to m68k-tdep.c.
Wed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com)
* coffread.c: Eliminate c_nsyms in favor of c_naux.

View File

@ -1,5 +1,5 @@
/* Parameters for targeting to a 3b1.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -27,9 +27,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in COFF format. */
/* Debugger information will be in COFF format, without long filenames. */
#define COFF_FORMAT
#define COFF_NO_LONG_FILE_NAMES
/* Address of end of stack space. */

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on an Altos 3068 (m68k running SVR2)
Copyright (C) 1987,1989 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -27,9 +27,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef NAMES_HAVE_UNDERSCORE
/* Exec files and symbol tables are in COFF format */
/* COFF files don't have long filenames. */
#define COFF_FORMAT
#define COFF_NO_LONG_FILE_NAMES
/* Address of end of stack space. */
@ -38,60 +37,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define STACK_END_ADDR (0x1000000)
/* Amount PC must be decremented by after a breakpoint.
This is often the number of bytes in BREAKPOINT
but not always.
On the Altos, the kernel resets the pc to the trap instr */
#define DECR_PC_AFTER_BREAK 0
/* Things needed for making the inferior call functions. */
/* Push an empty stack frame, to record the current PC, etc. */
#define PUSH_DUMMY_FRAME \
{ register CORE_ADDR sp = read_register (SP_REGNUM); \
register int regnum; \
char raw_buffer[12]; \
sp = push_word (sp, read_register (PC_REGNUM)); \
sp = push_word (sp, read_register (FP_REGNUM)); \
write_register (FP_REGNUM, sp); \
for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--) \
{ read_register_bytes (REGISTER_BYTE (regnum), raw_buffer, 12); \
sp = push_bytes (sp, raw_buffer, 12); } \
for (regnum = FP_REGNUM - 1; regnum >= 0; regnum--) \
sp = push_word (sp, read_register (regnum)); \
sp = push_word (sp, read_register (PS_REGNUM)); \
write_register (SP_REGNUM, sp); }
/* Discard from the stack the innermost frame,
restoring all saved registers. */
#define POP_FRAME \
{ register FRAME frame = get_current_frame (); \
register CORE_ADDR fp; \
register int regnum; \
struct frame_saved_regs fsr; \
struct frame_info *fi; \
char raw_buffer[12]; \
fi = get_frame_info (frame); \
fp = fi->frame; \
get_frame_saved_regs (fi, &fsr); \
for (regnum = FP0_REGNUM + 7; regnum >= FP0_REGNUM; regnum--) \
if (fsr.regs[regnum]) \
{ read_memory (fsr.regs[regnum], raw_buffer, 12); \
write_register_bytes (REGISTER_BYTE (regnum), raw_buffer, 12); }\
for (regnum = FP_REGNUM - 1; regnum >= 0; regnum--) \
if (fsr.regs[regnum]) \
write_register (regnum, read_memory_integer (fsr.regs[regnum], 4)); \
if (fsr.regs[PS_REGNUM]) \
write_register (PS_REGNUM, read_memory_integer (fsr.regs[PS_REGNUM], 4)); \
write_register (FP_REGNUM, read_memory_integer (fp, 4)); \
write_register (PC_REGNUM, read_memory_integer (fp + 4, 4)); \
write_register (SP_REGNUM, fp + 8); \
flush_cached_frames (); \
set_current_frame (create_new_frame (read_register (FP_REGNUM), \
read_pc ())); }
#include "tm-68k.h"

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on an Altos 3068 using COFF encapsulation.
Copyright (C) 1989 Free Software Foundation, Inc.
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -21,8 +21,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "m-altos.h"
#undef COFF_FORMAT
#undef COFF_NO_LONG_FILE_NAMES
#define NAMES_HAVE_UNDERSCORE
#define READ_DBX_FORMAT

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB target for an ARM under RISCiX (4.3bsd).
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -32,10 +32,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on Convex Unix (4bsd)
Copyright (C) 1989 Free Software Foundation, Inc.
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -32,10 +32,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* There is come problem with the debugging symbols generated by the
compiler such that the debugging symbol for the first line of a
function overlap with the function prologue. */

View File

@ -35,10 +35,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
#define TARGET_NBPG 4096
#define TARGET_UPAGES 3

View File

@ -1,5 +1,5 @@
/* Parameters for execution on an HP 9000 model 320, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -29,10 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Address of end of stack space. */
#define STACK_END_ADDR 0xFFF00000

View File

@ -1,5 +1,5 @@
/* Macro definitions for i386 using the GNU object file format.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -30,6 +30,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tm-i386v.h"
#define NAMES_HAVE_UNDERSCORE
#undef COFF_FORMAT
#define READ_DBX_FORMAT

View File

@ -1,5 +1,5 @@
/* Macro defintions for i386.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -31,18 +31,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define COFF_NO_LONG_FILE_NAMES
/* turn this on when rest of gdb is ready */
/* #define IEEE_FLOAT */
#define IEEE_FLOAT
/* Define this if the C compiler puts an underscore at the front
of external names before giving them to the linker. */
/* #define NAMES_HAVE_UNDERSCORE */
/* Specify debugger information format. */
/* #define READ_DBX_FORMAT */
#define COFF_FORMAT
/* number of traps that happen between exec'ing the shell
* to run an inferior, and when we finally get to
* the inferior code. This is 2 on most implementations.

View File

@ -1,4 +1,5 @@
/* Copyright (C) 1990 Free Software Foundation, Inc.
/* Target machine description for SGI Iris under Irix, for GDB.
Copyright 1990, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -26,14 +27,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/*#define NAMES_HAVE_UNDERSCORE*/
/* Debugger information will be in mips' format */
#define READ_MIPS_FORMAT
/* File format is coff, but with additions */
#define COFF_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,5 +1,5 @@
/* Definitions to target GDB on an ISI Optimum V (3.05) under 4.3bsd.
Copyright (C) 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -27,10 +27,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Address of end of stack space. */
#define STACK_END_ADDR 0xfffe000

View File

@ -1,5 +1,5 @@
/* Definitions to target GDB to a merlin under utek 2.1
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -28,10 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,7 +1,7 @@
/* Definitions to make GDB run on a mips box under 4.3bsd.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Contributed by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin
and by Alessandro Forin(af@cs.cmu.edu) at CMU
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
Contributed by Per Bothner (bothner@cs.wisc.edu) at U.Wisconsin
and by Alessandro Forin (af@cs.cmu.edu) at CMU.
This file is part of GDB.

View File

@ -1,5 +1,5 @@
/* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger.
Copyright (C) 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -34,9 +34,6 @@ Here is an m-news.h file for gdb. It supports the 68881 registers.
#define NAMES_HAVE_UNDERSCORE
/* Symbols on this machine are in DBX format. */
#define READ_DBX_FORMAT
/* Use to compute STACK_END_ADDR. */
#define TARGET_UPAGES 2
#define TARGET_NBPG 4096

View File

@ -1,5 +1,5 @@
/* Parameters for targeting on a Gould NP1, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -78,9 +78,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
of external names before giving them to the linker. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Address of blocks in N_LBRAC and N_RBRAC symbols are absolute addresses,
not relative to start of source address. */
#define BLOCK_ADDRESS_ABSOLUTE

View File

@ -1,5 +1,5 @@
/* Parameters for targe of a Gould Powernode, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -79,9 +79,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
of external names before giving them to the linker. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */
#define FUNCTION_START_OFFSET 4

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on a Pyramidax under OSx 4.0 (4.2bsd).
Copyright (C) 1988, 1989 Free Software Foundation, Inc.
/* Definitions to make GDB run on a Pyramid under OSx 4.0 (4.2bsd).
Copyright (C) 1988, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -48,10 +48,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,6 +1,7 @@
/* Parameters for target machine of Sun 4, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@mcc.com)
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
@ -27,10 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* When passing a structure to a function, Sun cc passes the address
in a register, not the structure itself. It (under SunOS4) creates
two symbols, so we get a LOC_ARG saying the address is on the stack

View File

@ -1,5 +1,5 @@
/* Parameters for execution on a Sun, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 199 Free Software Foundation, Inc.
This file is part of GDB.
@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Address of the end of stack space. We get this from the system
include files. */

View File

@ -19,8 +19,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HAVE_68881
/* TARGET_SUN3 might be a more logical name, but that's used by
../include/target.h (included by ../include/a.out.gnu.h). */
/* Let native-versus-cross support code know we are targeting sun3,
and modify registers to include sun3 fpustate register. */
#define GDB_TARGET_IS_SUN3 1
/* Define this if the C compiler puts an underscore at the front
@ -28,10 +29,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Address of the end of stack space. We get this from the system
include files. */
@ -40,8 +37,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define STACK_END_ADDR USRSTACK
#include "tm-68k.h"
SWAP_TARGET_AND_HOST (temp, 4); \
bcopy ((char *)&temp, (char *)(dummyname) + 20, 4); \
temp = fun; \
SWAP_TARGET_AND_HOST (temp, 4); \
bcopy ((char *)&temp, (char *)(dummyname) + 14, 4); }

View File

@ -1,5 +1,5 @@
/* Parameters for execution on a Sun 386i, for GDB, the GNU debugger.
Copyright (C) 1986, 1987 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -38,10 +38,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* sun386 ptrace seems unable to change the frame pointer */
#define PTRACE_FP_BUG
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,6 +1,6 @@
/* Definitions to make GDB run on a Sequent Symmetry under dynix 3.0,
with Weitek 1167 and i387 support.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -31,10 +31,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -30,10 +30,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on an encore under umax 4.2
Copyright (C) 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -24,10 +24,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define NAMES_HAVE_UNDERSCORE
/* Exec files and symbol tables are in COFF format */
#define COFF_FORMAT
/* Need to get function ends by adding this to epilogue address from .bf
record, not using x_fsize field. */
#define FUNCTION_EPILOGUE_SIZE 4

View File

@ -1,5 +1,5 @@
/* Definitions to make GDB run on a vax under 4.2bsd.
Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
@ -45,10 +45,6 @@ fix to bug-gdb@prep.ai.mit.edu. */
#define NAMES_HAVE_UNDERSCORE
/* Debugger information will be in DBX format. */
#define READ_DBX_FORMAT
/* Offset from address of function to start of its code.
Zero on most machines. */