From 0d1963502f0562c1996ba555737c1fb119f51250 Mon Sep 17 00:00:00 2001 From: cagney Date: Sun, 2 Dec 2001 02:57:13 +0000 Subject: [PATCH] Delete HOST_BYTE_ORDER. --- gdb/ChangeLog | 34 ++++++++++++++++++++++++++++ gdb/MAINTAINERS | 2 +- gdb/config/a29k/tm-a29k.h | 5 +++-- gdb/config/a29k/tm-vx29k.h | 1 + gdb/config/alpha/xm-alphalinux.h | 4 ---- gdb/config/alpha/xm-alphaosf.h | 4 ---- gdb/config/alpha/xm-fbsd.h | 26 ---------------------- gdb/config/arm/xm-linux.h | 2 -- gdb/config/i386/xm-cygwin.h | 4 ++-- gdb/config/i386/xm-i386bsd.h | 2 -- gdb/config/i386/xm-i386gnu.h | 2 -- gdb/config/i386/xm-i386lynx.h | 27 +++++++++++----------- gdb/config/i386/xm-i386m3.h | 2 -- gdb/config/i386/xm-i386mach.h | 2 -- gdb/config/i386/xm-i386v.h | 48 +++++++++++++++++++--------------------- gdb/config/i386/xm-ptx.h | 2 -- gdb/config/i386/xm-symmetry.h | 2 -- gdb/config/ia64/xm-aix.h | 2 -- gdb/config/ia64/xm-linux.h | 2 -- gdb/config/m68k/xm-3b1.h | 2 -- gdb/config/m68k/xm-apollo68b.h | 2 -- gdb/config/m68k/xm-apollo68v.h | 48 +++++++++++++++++++--------------------- gdb/config/m68k/xm-delta68.h | 33 ++++++++++++++------------- gdb/config/m68k/xm-dpx2.h | 2 -- gdb/config/m68k/xm-hp300bsd.h | 2 -- gdb/config/m68k/xm-hp300hpux.h | 2 -- gdb/config/m68k/xm-m68k.h | 27 +++++++++++----------- gdb/config/m68k/xm-m68klynx.h | 27 +++++++++++----------- gdb/config/m68k/xm-sun2.h | 2 -- gdb/config/m68k/xm-sun3.h | 3 --- gdb/config/m88k/xm-dgux.h | 2 -- gdb/config/m88k/xm-m88k.h | 20 ----------------- gdb/config/mips/xm-irix3.h | 2 -- gdb/config/mips/xm-irix5.h | 2 -- gdb/config/mips/xm-linux.h | 9 -------- gdb/config/mips/xm-mips.h | 4 ---- gdb/config/mips/xm-mipsm3.h | 4 ---- gdb/config/mips/xm-mipsv4.h | 2 -- gdb/config/mips/xm-news-mips.h | 26 ---------------------- gdb/config/mips/xm-riscos.h | 4 ---- gdb/config/pa/xm-hppab.h | 4 ---- gdb/config/pa/xm-hppah.h | 3 --- gdb/config/powerpc/xm-linux.h | 2 -- gdb/config/romp/xm-rtbsd.h | 33 +++++++++++++-------------- gdb/config/rs6000/xm-rs6000.h | 2 -- gdb/config/rs6000/xm-rs6000ly.h | 27 +++++++++++----------- gdb/config/s390/xm-linux.h | 3 --- gdb/config/sparc/xm-sparc.h | 22 ------------------ gdb/config/sparc/xm-sparclynx.h | 27 +++++++++++----------- gdb/config/vax/xm-vax.h | 33 ++++++++++++++------------- gdb/config/xm-aix4.h | 4 ---- gdb/config/xm-nbsd.h | 7 ------ gdb/defs.h | 3 ++- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdbint.texinfo | 5 ----- 55 files changed, 206 insertions(+), 372 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9c9a5d15f0..82e143da8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,39 @@ 2001-12-01 Andrew Cagney + * 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 + * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete. (ALLDEPFILES): Delete news-xdep.c. (news-xdep.o): Delete. diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index 3db0c41c4b..96dba4bdea 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -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 diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h index bfd65191f2..9978459246 100644 --- a/gdb/config/a29k/tm-a29k.h +++ b/gdb/config/a29k/tm-a29k.h @@ -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 diff --git a/gdb/config/a29k/tm-vx29k.h b/gdb/config/a29k/tm-vx29k.h index fb6ecb3fd5..15113c5cde 100644 --- a/gdb/config/a29k/tm-vx29k.h +++ b/gdb/config/a29k/tm-vx29k.h @@ -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), \ diff --git a/gdb/config/alpha/xm-alphalinux.h b/gdb/config/alpha/xm-alphalinux.h index 579fe11fce..b487630e7f 100644 --- a/gdb/config/alpha/xm-alphalinux.h +++ b/gdb/config/alpha/xm-alphalinux.h @@ -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 diff --git a/gdb/config/alpha/xm-alphaosf.h b/gdb/config/alpha/xm-alphaosf.h index 4d32951a14..67d3cc4af8 100644 --- a/gdb/config/alpha/xm-alphaosf.h +++ b/gdb/config/alpha/xm-alphaosf.h @@ -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 diff --git a/gdb/config/alpha/xm-fbsd.h b/gdb/config/alpha/xm-fbsd.h index b1e7efddd4..e69de29bb2 100644 --- a/gdb/config/alpha/xm-fbsd.h +++ b/gdb/config/alpha/xm-fbsd.h @@ -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 */ diff --git a/gdb/config/arm/xm-linux.h b/gdb/config/arm/xm-linux.h index e8f9e85d79..fa82a1e8f3 100644 --- a/gdb/config/arm/xm-linux.h +++ b/gdb/config/arm/xm-linux.h @@ -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 diff --git a/gdb/config/i386/xm-cygwin.h b/gdb/config/i386/xm-cygwin.h index 1945a75aea..b8290c28cb 100644 --- a/gdb/config/i386/xm-cygwin.h +++ b/gdb/config/i386/xm-cygwin.h @@ -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 diff --git a/gdb/config/i386/xm-i386bsd.h b/gdb/config/i386/xm-i386bsd.h index 870839db72..ca0ffb2ab8 100644 --- a/gdb/config/i386/xm-i386bsd.h +++ b/gdb/config/i386/xm-i386bsd.h @@ -19,6 +19,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define HOST_BYTE_ORDER LITTLE_ENDIAN - #include /* for INT_MIN */ diff --git a/gdb/config/i386/xm-i386gnu.h b/gdb/config/i386/xm-i386gnu.h index 37bf1e5204..711aeebccf 100644 --- a/gdb/config/i386/xm-i386gnu.h +++ b/gdb/config/i386/xm-i386gnu.h @@ -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. */ diff --git a/gdb/config/i386/xm-i386lynx.h b/gdb/config/i386/xm-i386lynx.h index 6078cb6f2c..0aedb137bb 100644 --- a/gdb/config/i386/xm-i386lynx.h +++ b/gdb/config/i386/xm-i386lynx.h @@ -1,23 +1,22 @@ /* Host-dependent definitions for Intel 386 running LynxOS. Copyright 1993 Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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 LITTLE_ENDIAN + 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. */ /* Get generic LynxOS host definitions. */ diff --git a/gdb/config/i386/xm-i386m3.h b/gdb/config/i386/xm-i386m3.h index 6f2f8968c1..f25b389121 100644 --- a/gdb/config/i386/xm-i386m3.h +++ b/gdb/config/i386/xm-i386m3.h @@ -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 diff --git a/gdb/config/i386/xm-i386mach.h b/gdb/config/i386/xm-i386mach.h index b895c645ef..e0a5d65137 100644 --- a/gdb/config/i386/xm-i386mach.h +++ b/gdb/config/i386/xm-i386mach.h @@ -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. */ diff --git a/gdb/config/i386/xm-i386v.h b/gdb/config/i386/xm-i386v.h index 480dfd671a..1c329054f2 100644 --- a/gdb/config/i386/xm-i386v.h +++ b/gdb/config/i386/xm-i386v.h @@ -2,35 +2,34 @@ Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc. Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu), July 1988. -This file is part of GDB. + 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 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. + 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 LITTLE_ENDIAN + 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. */ /* 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. - -On some machines, gdb crashes when it's starting up while calling the -vendor's termio tgetent() routine. It always works when run under -itself (actually, under 3.2, it's not an infinitely recursive bug.) -After some poking around, it appears that depending on the environment -size, or whether you're running YP, or the phase of the moon or something, -the stack is not always long-aligned when main() is called, and tgetent() -takes strong offense at that. On some machines this bug never appears, but -on those where it does, it occurs quite reliably. */ + Sys V/386 3.2. + + On some machines, gdb crashes when it's starting up while calling the + vendor's termio tgetent() routine. It always works when run under + itself (actually, under 3.2, it's not an infinitely recursive bug.) + After some poking around, it appears that depending on the environment + size, or whether you're running YP, or the phase of the moon or something, + the stack is not always long-aligned when main() is called, and tgetent() + takes strong offense at that. On some machines this bug never appears, but + on those where it does, it occurs quite reliably. */ #define ALIGN_STACK_ON_STARTUP /* define USG if you are using sys5 /usr/include's */ @@ -42,4 +41,3 @@ on those where it does, it occurs quite reliably. */ to get the offset in the core file of the register values. */ #define KERNEL_U_ADDR 0xe0000000 - diff --git a/gdb/config/i386/xm-ptx.h b/gdb/config/i386/xm-ptx.h index ad26a848db..6dfb9d6d4e 100644 --- a/gdb/config/i386/xm-ptx.h +++ b/gdb/config/i386/xm-ptx.h @@ -36,5 +36,3 @@ #define USG #define USE_O_NOCTTY - -#define HOST_BYTE_ORDER LITTLE_ENDIAN diff --git a/gdb/config/i386/xm-symmetry.h b/gdb/config/i386/xm-symmetry.h index 477ee1b86b..781a343961 100644 --- a/gdb/config/i386/xm-symmetry.h +++ b/gdb/config/i386/xm-symmetry.h @@ -26,5 +26,3 @@ #define NO_SIGINTERRUPT #define HAVE_WAIT_STRUCT - -#define HOST_BYTE_ORDER LITTLE_ENDIAN diff --git a/gdb/config/ia64/xm-aix.h b/gdb/config/ia64/xm-aix.h index 97c790d67c..6ca026d493 100644 --- a/gdb/config/ia64/xm-aix.h +++ b/gdb/config/ia64/xm-aix.h @@ -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" diff --git a/gdb/config/ia64/xm-linux.h b/gdb/config/ia64/xm-linux.h index 6f6b05579b..adf6b21b4c 100644 --- a/gdb/config/ia64/xm-linux.h +++ b/gdb/config/ia64/xm-linux.h @@ -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 diff --git a/gdb/config/m68k/xm-3b1.h b/gdb/config/m68k/xm-3b1.h index 9b9fcf10c0..acf72e9820 100644 --- a/gdb/config/m68k/xm-3b1.h +++ b/gdb/config/m68k/xm-3b1.h @@ -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 diff --git a/gdb/config/m68k/xm-apollo68b.h b/gdb/config/m68k/xm-apollo68b.h index fc053e2763..d77509d5a0 100644 --- a/gdb/config/m68k/xm-apollo68b.h +++ b/gdb/config/m68k/xm-apollo68b.h @@ -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 diff --git a/gdb/config/m68k/xm-apollo68v.h b/gdb/config/m68k/xm-apollo68v.h index c87ff47839..8919088b4f 100644 --- a/gdb/config/m68k/xm-apollo68v.h +++ b/gdb/config/m68k/xm-apollo68v.h @@ -1,44 +1,42 @@ /* Macro defintions for an Apollo. Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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. */ + 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. */ /* * Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu) * 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. - -On some machines, gdb crashes when it's starting up while calling the -vendor's termio tgetent() routine. It always works when run under -itself (actually, under 3.2, it's not an infinitely recursive bug.) -After some poking around, it appears that depending on the environment -size, or whether you're running YP, or the phase of the moon or something, -the stack is not always long-aligned when main() is called, and tgetent() -takes strong offense at that. On some machines this bug never appears, but -on those where it does, it occurs quite reliably. */ + Sys V/386 3.2. + + On some machines, gdb crashes when it's starting up while calling the + vendor's termio tgetent() routine. It always works when run under + itself (actually, under 3.2, it's not an infinitely recursive bug.) + After some poking around, it appears that depending on the environment + size, or whether you're running YP, or the phase of the moon or something, + the stack is not always long-aligned when main() is called, and tgetent() + takes strong offense at that. On some machines this bug never appears, but + on those where it does, it occurs quite reliably. */ #define ALIGN_STACK_ON_STARTUP /* define USG if you are using sys5 /usr/include's */ #define USG #define HAVE_TERMIO - diff --git a/gdb/config/m68k/xm-delta68.h b/gdb/config/m68k/xm-delta68.h index 6ce705cf85..f691c387db 100644 --- a/gdb/config/m68k/xm-delta68.h +++ b/gdb/config/m68k/xm-delta68.h @@ -1,23 +1,22 @@ /* Macro definitions for a Delta. Copyright (C) 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#define HOST_BYTE_ORDER BIG_ENDIAN + 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. */ /* I'm running gdb 4.9 under sysV68 R3V7.1. diff --git a/gdb/config/m68k/xm-dpx2.h b/gdb/config/m68k/xm-dpx2.h index 4595c81812..4083c9dbc1 100644 --- a/gdb/config/m68k/xm-dpx2.h +++ b/gdb/config/m68k/xm-dpx2.h @@ -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 diff --git a/gdb/config/m68k/xm-hp300bsd.h b/gdb/config/m68k/xm-hp300bsd.h index f8659a4c73..b938353b5f 100644 --- a/gdb/config/m68k/xm-hp300bsd.h +++ b/gdb/config/m68k/xm-hp300bsd.h @@ -25,8 +25,6 @@ * Problems to hpbsd-bugs@cs.utah.edu */ -#define HOST_BYTE_ORDER BIG_ENDIAN - #include /* For INT_MIN */ /* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ diff --git a/gdb/config/m68k/xm-hp300hpux.h b/gdb/config/m68k/xm-hp300hpux.h index ec07767aac..f5982b4491 100644 --- a/gdb/config/m68k/xm-hp300hpux.h +++ b/gdb/config/m68k/xm-hp300hpux.h @@ -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 diff --git a/gdb/config/m68k/xm-m68k.h b/gdb/config/m68k/xm-m68k.h index 547940877f..5dc40ecb8f 100644 --- a/gdb/config/m68k/xm-m68k.h +++ b/gdb/config/m68k/xm-m68k.h @@ -2,21 +2,20 @@ Copyright (C) 1991, Free Software Foundation, Inc. Written by Fred Fish at Cygnus Support (fnf@cygint) -This file is part of GDB. + 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 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. + 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 + 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. */ diff --git a/gdb/config/m68k/xm-m68klynx.h b/gdb/config/m68k/xm-m68klynx.h index ded6844c90..40619aae43 100644 --- a/gdb/config/m68k/xm-m68klynx.h +++ b/gdb/config/m68k/xm-m68klynx.h @@ -1,23 +1,22 @@ /* Host-dependent definitions for Motorola 680x0 running LynxOS, for GDB. Copyright 1993 Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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 + 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. */ /* Get generic LynxOS host definitions. */ diff --git a/gdb/config/m68k/xm-sun2.h b/gdb/config/m68k/xm-sun2.h index 532390c214..cf84619249 100644 --- a/gdb/config/m68k/xm-sun2.h +++ b/gdb/config/m68k/xm-sun2.h @@ -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. */ diff --git a/gdb/config/m68k/xm-sun3.h b/gdb/config/m68k/xm-sun3.h index 523c4785d5..6a5a560e1c 100644 --- a/gdb/config/m68k/xm-sun3.h +++ b/gdb/config/m68k/xm-sun3.h @@ -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. diff --git a/gdb/config/m88k/xm-dgux.h b/gdb/config/m88k/xm-dgux.h index f1c6826397..11220f5c02 100644 --- a/gdb/config/m88k/xm-dgux.h +++ b/gdb/config/m88k/xm-dgux.h @@ -21,8 +21,6 @@ #include "m88k/xm-m88k.h" -#define HOST_BYTE_ORDER BIG_ENDIAN - #if !defined (USG) #define USG 1 #endif diff --git a/gdb/config/m88k/xm-m88k.h b/gdb/config/m88k/xm-m88k.h index 35620a0ce0..e69de29bb2 100644 --- a/gdb/config/m88k/xm-m88k.h +++ b/gdb/config/m88k/xm-m88k.h @@ -1,20 +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 diff --git a/gdb/config/mips/xm-irix3.h b/gdb/config/mips/xm-irix3.h index 88ad4452c8..27da9a5388 100644 --- a/gdb/config/mips/xm-irix3.h +++ b/gdb/config/mips/xm-irix3.h @@ -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) \ diff --git a/gdb/config/mips/xm-irix5.h b/gdb/config/mips/xm-irix5.h index 24c625af36..78c3a071e1 100644 --- a/gdb/config/mips/xm-irix5.h +++ b/gdb/config/mips/xm-irix5.h @@ -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) \ diff --git a/gdb/config/mips/xm-linux.h b/gdb/config/mips/xm-linux.h index d691e46599..c19895e042 100644 --- a/gdb/config/mips/xm-linux.h +++ b/gdb/config/mips/xm-linux.h @@ -21,13 +21,4 @@ #ifndef XM_MIPSLINUX_H #define XM_MIPSLINUX_H -#ifndef HOST_BYTE_ORDER -#include -#if __BYTE_ORDER == __BIG_ENDIAN -#define HOST_BYTE_ORDER BIG_ENDIAN -#else -#define HOST_BYTE_ORDER LITTLE_ENDIAN -#endif -#endif - #endif /* XM_MIPSLINUX_H */ diff --git a/gdb/config/mips/xm-mips.h b/gdb/config/mips/xm-mips.h index 4b40fc8ee6..c1f53b53ed 100644 --- a/gdb/config/mips/xm-mips.h +++ b/gdb/config/mips/xm-mips.h @@ -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 diff --git a/gdb/config/mips/xm-mipsm3.h b/gdb/config/mips/xm-mipsm3.h index c11f11fd99..b2e9f4d533 100644 --- a/gdb/config/mips/xm-mipsm3.h +++ b/gdb/config/mips/xm-mipsm3.h @@ -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. */ diff --git a/gdb/config/mips/xm-mipsv4.h b/gdb/config/mips/xm-mipsv4.h index af60741bc0..76fa5da19d 100644 --- a/gdb/config/mips/xm-mipsv4.h +++ b/gdb/config/mips/xm-mipsv4.h @@ -20,5 +20,3 @@ Boston, MA 02111-1307, USA. */ #include "xm-sysv4.h" - -#define HOST_BYTE_ORDER BIG_ENDIAN diff --git a/gdb/config/mips/xm-news-mips.h b/gdb/config/mips/xm-news-mips.h index 0f032d7e5b..e69de29bb2 100644 --- a/gdb/config/mips/xm-news-mips.h +++ b/gdb/config/mips/xm-news-mips.h @@ -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 diff --git a/gdb/config/mips/xm-riscos.h b/gdb/config/mips/xm-riscos.h index acffc875c4..1f03c5a00a 100644 --- a/gdb/config/mips/xm-riscos.h +++ b/gdb/config/mips/xm-riscos.h @@ -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. */ diff --git a/gdb/config/pa/xm-hppab.h b/gdb/config/pa/xm-hppab.h index 01753f04ac..d2561dfcf6 100644 --- a/gdb/config/pa/xm-hppab.h +++ b/gdb/config/pa/xm-hppab.h @@ -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" diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h index bb212187af..b1c26dd4de 100644 --- a/gdb/config/pa/xm-hppah.h +++ b/gdb/config/pa/xm-hppah.h @@ -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 diff --git a/gdb/config/powerpc/xm-linux.h b/gdb/config/powerpc/xm-linux.h index 410ece1693..c8a029d101 100644 --- a/gdb/config/powerpc/xm-linux.h +++ b/gdb/config/powerpc/xm-linux.h @@ -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 diff --git a/gdb/config/romp/xm-rtbsd.h b/gdb/config/romp/xm-rtbsd.h index d99b57f44a..e7918163ee 100644 --- a/gdb/config/romp/xm-rtbsd.h +++ b/gdb/config/romp/xm-rtbsd.h @@ -2,24 +2,22 @@ Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc. Contributed by David Wood @ New York University (wood@lab.ultra.nyu.edu). -This file is part of GDB. + 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 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. + 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. */ - -/* This machine is most significant byte first */ -#define HOST_BYTE_ORDER BIG_ENDIAN + 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. */ /* This OS has the wait structure */ #define HAVE_WAIT_STRUCT @@ -30,11 +28,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ * do remote debugging. I know there is a gdb for the RT, but there wasn't * an xconfig/rt* file. */ -#define KERNEL_U_ADDR_BSD /* This may be correct, but hasn't been tested */ +#define KERNEL_U_ADDR_BSD /* This may be correct, but hasn't been tested */ #define REGISTER_U_ADDR(a,b,c) \ (printf("GDB can not debug IBM RT/PC BSD executables (yet)\n"),\ quit(),0) #else -# include "GDB for the RT is not included in the distribution" +#include "GDB for the RT is not included in the distribution" #endif - diff --git a/gdb/config/rs6000/xm-rs6000.h b/gdb/config/rs6000/xm-rs6000.h index bf0553f9fb..51096e643b 100644 --- a/gdb/config/rs6000/xm-rs6000.h +++ b/gdb/config/rs6000/xm-rs6000.h @@ -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 */ diff --git a/gdb/config/rs6000/xm-rs6000ly.h b/gdb/config/rs6000/xm-rs6000ly.h index f75cfab139..459df95131 100644 --- a/gdb/config/rs6000/xm-rs6000ly.h +++ b/gdb/config/rs6000/xm-rs6000ly.h @@ -1,27 +1,26 @@ /* Host-dependent definitions for RS6000 running LynxOS, for GDB. Copyright 1993 Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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. */ + 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_RS6000LYNX_H #define XM_RS6000LYNX_H -#define HOST_BYTE_ORDER BIG_ENDIAN - /* Get generic LynxOS host definitions. */ #include "xm-lynx.h" diff --git a/gdb/config/s390/xm-linux.h b/gdb/config/s390/xm-linux.h index 5c5955c842..d059d4097f 100644 --- a/gdb/config/s390/xm-linux.h +++ b/gdb/config/s390/xm-linux.h @@ -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 diff --git a/gdb/config/sparc/xm-sparc.h b/gdb/config/sparc/xm-sparc.h index 06c247ea9c..e69de29bb2 100644 --- a/gdb/config/sparc/xm-sparc.h +++ b/gdb/config/sparc/xm-sparc.h @@ -1,22 +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 diff --git a/gdb/config/sparc/xm-sparclynx.h b/gdb/config/sparc/xm-sparclynx.h index 7e62628e4e..aeed5b0ca5 100644 --- a/gdb/config/sparc/xm-sparclynx.h +++ b/gdb/config/sparc/xm-sparclynx.h @@ -1,23 +1,22 @@ /* Host-dependent definitions for Sparc running LynxOS, for GDB. Copyright 1993 Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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 + 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. */ /* Get generic LynxOS host definitions. */ diff --git a/gdb/config/vax/xm-vax.h b/gdb/config/vax/xm-vax.h index fea11c715d..9924f26014 100644 --- a/gdb/config/vax/xm-vax.h +++ b/gdb/config/vax/xm-vax.h @@ -1,23 +1,22 @@ /* Common definitions to make GDB run on Vaxen under 4.2bsd and Ultrix. Copyright (C) 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - -#define HOST_BYTE_ORDER LITTLE_ENDIAN + 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. */ /* This is the amount to subtract from u.u_ar0 to get the offset in the core file of the register values. */ diff --git a/gdb/config/xm-aix4.h b/gdb/config/xm-aix4.h index dc0aae7606..bea086a371 100644 --- a/gdb/config/xm-aix4.h +++ b/gdb/config/xm-aix4.h @@ -35,10 +35,6 @@ #include -/* 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 */ diff --git a/gdb/config/xm-nbsd.h b/gdb/config/xm-nbsd.h index 9a1f94a147..c8d00f6dd6 100644 --- a/gdb/config/xm-nbsd.h +++ b/gdb/config/xm-nbsd.h @@ -22,12 +22,5 @@ define on some systems. */ #include -#include -#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 diff --git a/gdb/defs.h b/gdb/defs.h index e338f3ce70..d75ecd35b2 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -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 diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f11965d813..3a8fc7440e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-01 Andrew Cagney + + * gdbint.texinfo (Host Definition): Delete documentation on + HOST_BYTE_ORDER. + 2001-11-30 Jim Blandy * gdb.texinfo (Overlays): New chapter, documenting GDB's diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 2429c49ec0..491eaaeed5 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -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 -- 2.11.0