Remove a few remaining underscore/no-underscore remnants from config files.

* config/{m68k-un.mt, sparc-un.mt}:  Remove.
* config/m68k-noun.mt: Rename to m68k-fp.mt.
* config/sparc-noun.mt: Rename to sparc-em.mt.
* tm-68k-noun.h, tm-spc-noun.h:  Remove.
* tm-68k-un.h:  Rename to tm-68k-fp.h.
* tm-spc-un.h:  Rename to tm-spc-em.h.
* tm-sun4sol2.h: Cleanup.
* configure.in (m68k-*, sparc-* targets):  Corresponding changes.
This commit is contained in:
John Gilmore 1993-03-14 10:49:01 +00:00
parent 961ee88e92
commit 84a05e5253
15 changed files with 143 additions and 184 deletions

View File

@ -1,3 +1,17 @@
Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
Remove a few remaining underscore/no-underscore remnants from
config files.
* config/{m68k-un.mt, sparc-un.mt}: Remove.
* config/m68k-noun.mt: Rename to m68k-fp.mt.
* config/sparc-noun.mt: Rename to sparc-em.mt.
* tm-68k-noun.h, tm-spc-noun.h: Remove.
* tm-68k-un.h: Rename to tm-68k-fp.h.
* tm-spc-un.h: Rename to tm-spc-em.h.
* tm-sun4sol2.h: Cleanup.
* configure.in (m68k-*, sparc-* targets): Corresponding changes.
Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
* symmisc.c (std_in, std_out, std_err): Move initializations
@ -1530,8 +1544,7 @@ Thu Dec 17 00:44:57 1992 John Gilmore (gnu@cygnus.com)
* solib.c: Replace NAMES_HAVE_UNDERSCORE.
* stabsread.h: Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
* symfile.c (syms_from_objfile): Insert debugging check to test
NAMES_HAVE_UNDERSCORE setting against the BFD support. FIXME,
remove this (and all tm-*.h NAMES_HAVE_UNDERSCORE) soon.
NAMES_HAVE_UNDERSCORE setting against the BFD support.
* doc/gdbint.texinfo (Host Conditionals): Remove
NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
@ -3575,7 +3588,7 @@ Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
* tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
target definitions for embedded with and without underlines on
identifiers. FIXME -- this ought to be known by BFD instead.
identifiers.
* tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
not a parameter of the CPU, but of the development environment.

3
gdb/config/m68k-fp.mt Normal file
View File

@ -0,0 +1,3 @@
# Target: Motorola 68xxx with floating point
TDEPFILES= exec.o m68k-pinsn.o m68k-tdep.o
TM_FILE= tm-68k-fp.h

View File

@ -1,4 +0,0 @@
# Target: Motorola 68xxx, in a file format that uses no leading underlines.
# (such as COFF or ELF)
TDEPFILES= exec.o m68k-pinsn.o m68k-tdep.o
TM_FILE= tm-68k-noun.h

View File

@ -1,4 +0,0 @@
# Target: Motorola 68xxx, in a file format that uses leading underlines.
# (such as a.out)
TDEPFILES= exec.o m68k-pinsn.o m68k-tdep.o
TM_FILE= tm-68k-un.h

3
gdb/config/sparc-em.mt Normal file
View File

@ -0,0 +1,3 @@
# Target: SPARC embedded
TDEPFILES= exec.o sparc-tdep.o sparc-pinsn.o
TM_FILE= tm-spc-em.h

View File

@ -1,4 +0,0 @@
# Target: SPARC using an object file format with no leading underbars
# (like elf)
TDEPFILES= exec.o sparc-tdep.o sparc-pinsn.o
TM_FILE= tm-spc-noun.h

View File

@ -1,4 +0,0 @@
# Target: SPARC using an object file format with leading underbars
# (like a.out)
TDEPFILES= exec.o sparc-tdep.o sparc-pinsn.o
TM_FILE= tm-spc-un.h

View File

@ -159,9 +159,9 @@ m68*-netx-*) gdb_target=vxworks68 ;;
m68*-sony-*) gdb_target=news ;;
m68*-tandem-*) gdb_target=st2000 ;;
m68*-*-aout) gdb_target=m68k-un ;;
m68*-*-coff) gdb_target=m68k-noun ;;
m68*-*-elf) gdb_target=m68k-noun ;;
m68*-*-aout) gdb_target=m68k-fp ;;
m68*-*-coff) gdb_target=m68k-fp ;;
m68*-*-elf) gdb_target=m68k-fp ;;
m68*-*-os68k) gdb_target=os68k ;;
m68*-*-sunos3*) gdb_target=sun3os3 ;;
m68*-*-sunos4*) gdb_target=sun3os4 ;;
@ -190,12 +190,12 @@ pyramid-*-*) gdb_target=pyramid ;;
rs6000-*-*) gdb_target=rs6000 ;;
sparc-*-aout) gdb_target=sparc-un ;;
sparc-*-coff) gdb_target=sparc-noun ;;
sparc-*-elf) gdb_target=sparc-noun ;;
sparc-*-aout) gdb_target=sparc-em ;;
sparc-*-coff) gdb_target=sparc-em ;;
sparc-*-elf) gdb_target=sparc-em ;;
sparc-*-solaris2*) gdb_target=sun4sol2 ;;
sparc-*-sunos4*) gdb_target=sun4os4 ;;
sparc-*-vxworks*) gdb_target=sparc-un ;;
sparc-*-vxworks*) gdb_target=sparc-em ;;
sparc-*-*) gdb_target=sun4os4 ;;
sparclite*-*-*) gdb_target=sun4os4 ;;

66
gdb/tm-68k-fp.h Normal file
View File

@ -0,0 +1,66 @@
/* Target machine parameters for embedded m68k with 6888x float, for GDB.
Copyright 1986, 1987, 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HAVE_68881
#include "tm-68k.h"
/* Longjmp info comes from the Sun-3 machine description. Might as well
guess... */
/* Offsets (in target ints) into jmp_buf. Not defined by Sun, but at least
documented in a comment in <machine/setjmp.h>! */
#define JB_ELEMENT_SIZE 4
#define JB_ONSSTACK 0
#define JB_SIGMASK 1
#define JB_SP 2
#define JB_PC 3
#define JB_PSL 4
#define JB_D2 5
#define JB_D3 6
#define JB_D4 7
#define JB_D5 8
#define JB_D6 9
#define JB_D7 10
#define JB_A2 11
#define JB_A3 12
#define JB_A4 13
#define JB_A5 14
#define JB_A6 15
/* Figure out where the longjmp will land. Slurp the args out of the stack.
We expect the first arg to be a pointer to the jmp_buf structure from which
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
/* Where is the PC after a call? */
#ifdef __STDC__
struct frame_info;
#endif
extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#undef SAVED_PC_AFTER_CALL
#define SAVED_PC_AFTER_CALL(frame) \
m68k_saved_pc_after_call(frame)

View File

@ -1,67 +0,0 @@
/* Target machine parameters for an embedded m68k, for GDB, the GNU debugger.
This is for object file formats that don't have underlines on symbols.
Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HAVE_68881
#include "tm-68k.h"
/* Longjmp info comes from the Sun-3 machine description. Might as well
guess... */
/* Offsets (in target ints) into jmp_buf. Not defined by Sun, but at least
documented in a comment in <machine/setjmp.h>! */
#define JB_ELEMENT_SIZE 4
#define JB_ONSSTACK 0
#define JB_SIGMASK 1
#define JB_SP 2
#define JB_PC 3
#define JB_PSL 4
#define JB_D2 5
#define JB_D3 6
#define JB_D4 7
#define JB_D5 8
#define JB_D6 9
#define JB_D7 10
#define JB_A2 11
#define JB_A3 12
#define JB_A4 13
#define JB_A5 14
#define JB_A6 15
/* Figure out where the longjmp will land. Slurp the args out of the stack.
We expect the first arg to be a pointer to the jmp_buf structure from which
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
/* Where is the PC after a call? */
#ifdef __STDC__
struct frame_info;
#endif
extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#undef SAVED_PC_AFTER_CALL
#define SAVED_PC_AFTER_CALL(frame) \
m68k_saved_pc_after_call(frame)

View File

@ -1,21 +0,0 @@
/* Target machine parameters for an embedded m68k, for GDB, the GNU debugger.
This is for object file formats that do have underlines on symbols.
Copyright 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tm-68k-noun.h"

46
gdb/tm-spc-em.h Normal file
View File

@ -0,0 +1,46 @@
/* Target machine definitions for GDB for an embedded SPARC.
Copyright 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tm-sparc.h"
/* Offsets into jmp_buf. Not defined by Sun, but at least documented in a
comment in <machine/setjmp.h>! */
#define JB_ELEMENT_SIZE 4 /* Size of each element in jmp_buf */
#define JB_ONSSTACK 0
#define JB_SIGMASK 1
#define JB_SP 2
#define JB_PC 3
#define JB_NPC 4
#define JB_PSR 5
#define JB_G1 6
#define JB_O0 7
#define JB_WBCNT 8
/* Figure out where the longjmp will land. We expect that we have just entered
longjmp and haven't yet setup the stack frame, so the args are still in the
output regs. %o0 (O0_REGNUM) points at the jmp_buf structure from which we
extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
extern int
get_longjmp_target PARAMS ((CORE_ADDR *));
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)

View File

@ -1,47 +0,0 @@
/* Target machine definitions for GDB for an embedded SPARC, that uses
a file format where symbols have no leading underscore.
Copyright 1989, 1992 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tm-sparc.h"
/* Offsets into jmp_buf. Not defined by Sun, but at least documented in a
comment in <machine/setjmp.h>! */
#define JB_ELEMENT_SIZE 4 /* Size of each element in jmp_buf */
#define JB_ONSSTACK 0
#define JB_SIGMASK 1
#define JB_SP 2
#define JB_PC 3
#define JB_NPC 4
#define JB_PSR 5
#define JB_G1 6
#define JB_O0 7
#define JB_WBCNT 8
/* Figure out where the longjmp will land. We expect that we have just entered
longjmp and haven't yet setup the stack frame, so the args are still in the
output regs. %o0 (O0_REGNUM) points at the jmp_buf structure from which we
extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
extern int
get_longjmp_target PARAMS ((CORE_ADDR *));
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)

View File

@ -1,21 +0,0 @@
/* Target machine definitions for GDB for an embedded SPARC, that
uses a file format where symbols have a leading underscore.
Copyright 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "tm-spc-noun.h"

View File

@ -1,5 +1,5 @@
/* Macro definitions for GDB for a Sun 4 running Solaris 2
Copyright 1989, 1992 Free Software Foundation, Inc.
Copyright 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define SUN_FIXED_LBRAC_BUG
#if 0 /* Setjmp/longjmp are not as well doc'd in SunOS 5.x yet */
#if 0 /* FIXME Setjmp/longjmp are not as well doc'd in SunOS 5.x yet */
/* Offsets into jmp_buf. Not defined by Sun, but at least documented in a
comment in <machine/setjmp.h>! */