Delete HOST_BYTE_ORDER.

This commit is contained in:
Andrew Cagney 2001-12-02 02:57:18 +00:00
parent d41b701bc0
commit 2607059cba
55 changed files with 48 additions and 222 deletions

View file

@ -1,3 +1,37 @@
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* defs.h: Update comment on HOST_BYTE_ORDER.
* config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
* config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
* config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
* config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
* config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
* config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
* config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
* config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
* config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
* config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
* config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
* config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
* config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
* config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
* config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
* config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
* config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
* config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
* config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
* config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
* config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
* config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
* config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
* config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
* config/vax/xm-vax.h: Ditto.
* config/a29k/tm-vx29k.h: Add #error as file depends on
HOST_BYTE_ORDER.
* config/a29k/tm-a29k.h: Ditto.
* MAINTAINERS (a29k-amd-udi): Document as broken.
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.

View file

@ -51,7 +51,7 @@ variants. *-tdep.c. The Target/Architecture maintainer works with the
host maintainer when resolving build issues. The Target/Architecture
maintainer works with the native maintainer when resolving API issues.
a29k --target=a29k-amd-udi -Werror
a29k (--target=a29k-amd-udi broken)
Maintenance only
alpha --target=alpha-dec-osf4.0a -Werror

View file

@ -1,6 +1,6 @@
/* Parameters for target machine AMD 29000, for GDB, the GNU debugger.
Copyright 1990, 1991, 1993, 1994, 1995, 1996, 1998, 1999, 2000
Free Software Foundation, Inc.
Copyright 1990, 1991, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
2001 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by Jim Kingdon.
This file is part of GDB.
@ -617,6 +617,7 @@ extern void pop_frame ();
asneq 0x50,gr1,gr1 ; breakpoint (replaced by local breakpoint insn)
*/
#error "This file is broken. GDB does not define HOST_BYTE_ORDER."
#if TARGET_BYTE_ORDER == HOST_BYTE_ORDER
#define BS(const) const
#else

View file

@ -44,6 +44,7 @@
For Vxworks, the breakpoint is set and deleted by calls to
CALL_DUMMY_BREAK_SET and CALL_DUMMY_BREAK_DELETE. */
#error "This file is broken. GDB does not define HOST_BYTE_ORDER."
#if TARGET_BYTE_ORDER == HOST_BYTE_ORDER
#define CALL_DUMMY {0x0400870f,\
0x36008200|(MSP_HW_REGNUM), \

View file

@ -18,10 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
/* The alpha has no siginterrupt routine. */
#define NO_SIGINTERRUPT

View file

@ -18,10 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
/* The alpha has no siginterrupt routine. */
#define NO_SIGINTERRUPT

View file

@ -1,26 +0,0 @@
/* Host-dependent definitions for FreeBSD/i386.
Copyright 2000 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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef XM_FBSD_H
#define XM_FBSD_H
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif /* XM_FBSD_H */

View file

@ -21,8 +21,6 @@
#ifndef XM_ARMLINUX_H
#define XM_ARMLINUX_H
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0x0

View file

@ -18,9 +18,9 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#include "fopen-bin.h"
#define GDBINIT_FILENAME "gdb.ini"
/* Define this if source files use \r\n rather than just \n. */
#define CRLF_SOURCE_FILES

View file

@ -19,6 +19,4 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#include <machine/limits.h> /* for INT_MIN */

View file

@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext
/* Do implement the attach and detach commands. */

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* Get generic LynxOS host definitions. */
#include "xm-lynx.h"

View file

@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* Do implement the attach and detach commands. */
#define ATTACH_DETACH 1

View file

@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */

View file

@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* I'm running gdb 3.4 under 386/ix 2.0.2, which is a derivative of AT&T's
Sys V/386 3.2.

View file

@ -36,5 +36,3 @@
#define USG
#define USE_O_NOCTTY
#define HOST_BYTE_ORDER LITTLE_ENDIAN

View file

@ -26,5 +26,3 @@
#define NO_SIGINTERRUPT
#define HAVE_WAIT_STRUCT
#define HOST_BYTE_ORDER LITTLE_ENDIAN

View file

@ -21,8 +21,6 @@
#ifndef XM_AIX_H
#define XM_AIX_H
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* Pick up more stuff from the generic SVR4 host include file. */
#include "xm-sysv4.h"

View file

@ -21,8 +21,6 @@
#ifndef XM_LINUX_H
#define XM_LINUX_H
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0x0

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#define HAVE_TERMIO
#define USG

View file

@ -18,6 +18,4 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#define ALIGN_STACK_ON_STARTUP

View file

@ -23,8 +23,6 @@
* July 1988
*/
#define HOST_BYTE_ORDER BIG_ENDIAN
/* I'm running gdb 3.4 under 386/ix 2.0.2, which is a derivative of AT&T's
Sys V/386 3.2.

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* I'm running gdb 4.9 under sysV68 R3V7.1.
On some machines, gdb crashes when it's starting up while calling the

View file

@ -18,7 +18,5 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#define HAVE_TERMIOS
#define USG

View file

@ -25,8 +25,6 @@
* Problems to hpbsd-bugs@cs.utah.edu
*/
#define HOST_BYTE_ORDER BIG_ENDIAN
#include <sys/param.h> /* For INT_MIN */
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */

View file

@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Define this to indicate problems with traps after continuing. */
#define HP_OS_BUG

View file

@ -19,4 +19,3 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Get generic LynxOS host definitions. */
#include "xm-lynx.h"

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */

View file

@ -18,9 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Interface definitions for kernel debugger KDB. */
/* Map machine fault codes into signal numbers.

View file

@ -21,8 +21,6 @@
#include "m88k/xm-m88k.h"
#define HOST_BYTE_ORDER BIG_ENDIAN
#if !defined (USG)
#define USG 1
#endif

View file

@ -1,21 +0,0 @@
/* Host-machine dependent parameters for Motorola 88000, for GDB.
Copyright 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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN

View file

@ -21,8 +21,6 @@
#define HAVE_TERMIO
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Override register locations in upage for SGI machines */
#undef REGISTER_U_ADDR
#define REGISTER_U_ADDR(addr, blockend, regno) \

View file

@ -21,8 +21,6 @@
#include "xm-sysv4.h"
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Override register locations in upage for SGI machines */
#undef REGISTER_U_ADDR
#define REGISTER_U_ADDR(addr, blockend, regno) \

View file

@ -21,13 +21,4 @@
#ifndef XM_MIPSLINUX_H
#define XM_MIPSLINUX_H
#ifndef HOST_BYTE_ORDER
#include <endian.h>
#if __BYTE_ORDER == __BIG_ENDIAN
#define HOST_BYTE_ORDER BIG_ENDIAN
#else
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
#endif
#endif /* XM_MIPSLINUX_H */

View file

@ -21,10 +21,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
#ifdef ultrix
/* Needed for DECstation core files. */
#include <machine/param.h>

View file

@ -20,10 +20,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
#define KERNEL_U_ADDR 0 /* Not needed. */
/* Only used for core files on DECstations. */

View file

@ -20,5 +20,3 @@
Boston, MA 02111-1307, USA. */
#include "xm-sysv4.h"
#define HOST_BYTE_ORDER BIG_ENDIAN

View file

@ -1,26 +0,0 @@
/* Definitions to make GDB run on a mips box under 4.3bsd.
Copyright 1986, 1987, 1989, 1993, 1994, 1995
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.
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER BIG_ENDIAN
#endif

View file

@ -19,10 +19,6 @@
#define HAVE_TERMIO
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER BIG_ENDIAN
#endif
#define USG 1
/* setjmp.h requires uid_t. */

View file

@ -21,8 +21,4 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This is a big-endian host. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#include "pa/xm-pa.h"

View file

@ -22,9 +22,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Host is big-endian. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#include "pa/xm-pa.h"
#define USG

View file

@ -21,8 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef XM_LINUX_H
#define XM_LINUX_H
#define HOST_BYTE_ORDER BIG_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0x0

View file

@ -19,9 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* This machine is most significant byte first */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* This OS has the wait structure */
#define HAVE_WAIT_STRUCT

View file

@ -37,8 +37,6 @@
/* Big end is at the low address */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* At least as of AIX 3.2, we have termios. */
#define HAVE_TERMIOS 1
/* #define HAVE_TERMIO 1 */

View file

@ -21,8 +21,6 @@
#ifndef XM_RS6000LYNX_H
#define XM_RS6000LYNX_H
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Get generic LynxOS host definitions. */
#include "xm-lynx.h"

View file

@ -23,9 +23,6 @@
#ifndef XM_LINUX_H
#define XM_LINUX_H
#define HOST_BYTE_ORDER BIG_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0x0

View file

@ -1,23 +0,0 @@
/* Host definitions for a Sun 4, for GDB, the GNU debugger.
Copyright 1986, 1987, 1989, 1991, 1992, 1996
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
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* Get generic LynxOS host definitions. */
#include "xm-lynx.h"

View file

@ -18,8 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/* This is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */

View file

@ -35,10 +35,6 @@
#include <sys/select.h>
/* Big end is at the low address */
#define HOST_BYTE_ORDER BIG_ENDIAN
/* At least as of AIX 3.2, we have termios. */
#define HAVE_TERMIOS 1
/* #define HAVE_TERMIO 1 */

View file

@ -22,12 +22,5 @@
define on some systems. */
#include <sys/param.h>
#include <machine/endian.h>
#if BYTE_ORDER == BIG_ENDIAN
#define HOST_BYTE_ORDER BIG_ENDIAN
#else
#define HOST_BYTE_ORDER LITTLE_ENDIAN
#endif
/* NetBSD has termios facilities. */
#define HAVE_TERMIOS

View file

@ -1237,7 +1237,8 @@ extern void *alloca ();
#endif /* Not GNU C */
#endif /* alloca not defined */
/* HOST_BYTE_ORDER must be defined to one of these. */
/* Get a definition of BIG_ENDIAN and LITTLE_ENDIAN. */
/* FIXME: cagney/2001-10-31: GDB should just use BFD's definitions. */
#ifdef HAVE_ENDIAN_H
#include <endian.h>

View file

@ -1,3 +1,8 @@
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Host Definition): Delete documentation on
HOST_BYTE_ORDER.
2001-11-30 Jim Blandy <jimb@redhat.com>
* gdb.texinfo (Overlays): New chapter, documenting GDB's

View file

@ -2166,11 +2166,6 @@ tables. For some machines this allows for sharing and quick updates.
@item HAVE_TERMIO
Define this if the host system has @code{termio.h}.
@item HOST_BYTE_ORDER
@cindex byte order
The ordering of bytes in the host. This must be defined to be either
@code{BIG_ENDIAN} or @code{LITTLE_ENDIAN}.
@item INT_MAX
@itemx INT_MIN
@itemx LONG_MAX