This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfc] Eliminate HOST_BYTE_ORDER; break a29k
- To: gdb-patches at sources dot redhat dot com
- Subject: [rfc] Eliminate HOST_BYTE_ORDER; break a29k
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 31 Oct 2001 22:16:55 -0500
Hello,
The attached patch eliminates the macro HOST_BYTE_ORDER from GDB. In
doing this it will break the a29k (If you have issues with this patch
breaking the a29k please follow up a sibling post to gdb@ about this as
a policy).
It does have a querks. Where #define HOST_BYTE_ORDER was the only
source code line in the file, I deleted that and the comment leaving the
file empty. That is to make it easier to find these now defunct files
in a second pass.
I'll check this in after 5.1 has been released.
comments?
Andrew
2001-10-31 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.
Index: doc/ChangeLog
2001-10-31 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Host Definition): Delete documentation on
HOST_BYTE_ORDER.
Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.120
diff -p -r1.120 MAINTAINERS
*** MAINTAINERS 2001/10/13 22:13:35 1.120
--- MAINTAINERS 2001/11/01 03:54:31
*************** variants. *-tdep.c. The Target/Architec
*** 48,54 ****
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
Maintenance only
alpha --target=alpha-dec-osf4.0a -Werror
--- 48,54 ----
host maintainer when resolving build issues. The Target/Architecture
maintainer works with the native maintainer when resolving API issues.
! a29k (--target=a29k-amd-udi broken)
Maintenance only
alpha --target=alpha-dec-osf4.0a -Werror
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.64
diff -p -r1.64 defs.h
*** defs.h 2001/10/17 20:35:31 1.64
--- defs.h 2001/11/01 03:54:32
*************** extern void *alloca ();
*** 1222,1228 ****
#endif /* Not GNU C */
#endif /* alloca not defined */
! /* HOST_BYTE_ORDER must be defined to one of these. */
#ifdef HAVE_ENDIAN_H
#include <endian.h>
--- 1222,1229 ----
#endif /* Not GNU C */
#endif /* alloca not defined */
! /* 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>
Index: config/xm-aix4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/xm-aix4.h,v
retrieving revision 1.5
diff -p -r1.5 xm-aix4.h
*** xm-aix4.h 2001/09/08 10:50:07 1.5
--- xm-aix4.h 2001/11/01 03:54:32
***************
*** 35,44 ****
#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 */
--- 35,40 ----
Index: config/xm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/xm-nbsd.h,v
retrieving revision 1.3
diff -p -r1.3 xm-nbsd.h
*** xm-nbsd.h 2001/08/24 12:19:54 1.3
--- xm-nbsd.h 2001/11/01 03:54:32
***************
*** 22,33 ****
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
--- 22,26 ----
Index: config/a29k/tm-a29k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/a29k/tm-a29k.h,v
retrieving revision 1.5
diff -p -r1.5 tm-a29k.h
*** tm-a29k.h 2001/03/14 23:23:08 1.5
--- tm-a29k.h 2001/11/01 03:54:33
***************
*** 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.
Contributed by Cygnus Support. Written by Jim Kingdon.
This file is part of GDB.
--- 1,6 ----
/* Parameters for target machine AMD 29000, for GDB, the GNU debugger.
! 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.
*************** extern void pop_frame ();
*** 617,622 ****
--- 617,623 ----
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
Index: config/a29k/tm-vx29k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/a29k/tm-vx29k.h,v
retrieving revision 1.5
diff -p -r1.5 tm-vx29k.h
*** tm-vx29k.h 2001/10/21 17:19:38 1.5
--- tm-vx29k.h 2001/11/01 03:54:34
***************
*** 44,49 ****
--- 44,50 ----
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), \
Index: config/alpha/xm-alphalinux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/xm-alphalinux.h,v
retrieving revision 1.3
diff -p -r1.3 xm-alphalinux.h
*** xm-alphalinux.h 2001/08/27 22:39:56 1.3
--- xm-alphalinux.h 2001/11/01 03:54:34
***************
*** 18,27 ****
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
--- 18,23 ----
Index: config/alpha/xm-alphaosf.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/xm-alphaosf.h,v
retrieving revision 1.2
diff -p -r1.2 xm-alphaosf.h
*** xm-alphaosf.h 2001/03/06 08:21:21 1.2
--- xm-alphaosf.h 2001/11/01 03:54:34
***************
*** 18,27 ****
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
--- 18,23 ----
Index: config/alpha/xm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/xm-fbsd.h,v
retrieving revision 1.2
diff -p -r1.2 xm-fbsd.h
*** xm-fbsd.h 2001/03/06 08:21:21 1.2
--- xm-fbsd.h 2001/11/01 03:54:34
***************
*** 1,26 ****
- /* 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 */
--- 0 ----
Index: config/arm/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/xm-linux.h,v
retrieving revision 1.4
diff -p -r1.4 xm-linux.h
*** xm-linux.h 2001/09/08 10:39:52 1.4
--- xm-linux.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#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
--- 21,26 ----
Index: config/i386/xm-cygwin.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-cygwin.h,v
retrieving revision 1.4
diff -p -r1.4 xm-cygwin.h
*** xm-cygwin.h 2001/08/27 22:39:56 1.4
--- xm-cygwin.h 2001/11/01 03:54:34
***************
*** 18,25 ****
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"
--- 18,23 ----
Index: config/i386/xm-i386bsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386bsd.h,v
retrieving revision 1.2
diff -p -r1.2 xm-i386bsd.h
*** xm-i386bsd.h 2001/03/06 08:21:29 1.2
--- xm-i386bsd.h 2001/11/01 03:54:34
***************
*** 19,24 ****
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 */
--- 19,22 ----
Index: config/i386/xm-i386gnu.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386gnu.h,v
retrieving revision 1.3
diff -p -r1.3 xm-i386gnu.h
*** xm-i386gnu.h 2001/03/06 08:21:29 1.3
--- xm-i386gnu.h 2001/11/01 03:54:34
***************
*** 19,26 ****
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. */
--- 19,24 ----
Index: config/i386/xm-i386lynx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386lynx.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-i386lynx.h
*** xm-i386lynx.h 1999/07/07 20:13:33 1.1.1.2
--- xm-i386lynx.h 2001/11/01 03:54:34
***************
*** 18,25 ****
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"
--- 18,23 ----
Index: config/i386/xm-i386m3.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386m3.h,v
retrieving revision 1.2
diff -p -r1.2 xm-i386m3.h
*** xm-i386m3.h 2001/03/06 08:21:29 1.2
--- xm-i386m3.h 2001/11/01 03:54:34
***************
*** 19,26 ****
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
--- 19,24 ----
Index: config/i386/xm-i386mach.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386mach.h,v
retrieving revision 1.3
diff -p -r1.3 xm-i386mach.h
*** xm-i386mach.h 2001/03/06 08:21:29 1.3
--- xm-i386mach.h 2001/11/01 03:54:34
***************
*** 19,26 ****
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. */
--- 19,24 ----
Index: config/i386/xm-i386v.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386v.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-i386v.h
*** xm-i386v.h 1999/07/07 20:13:38 1.1.1.2
--- xm-i386v.h 2001/11/01 03:54:34
***************
*** 19,26 ****
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.
--- 19,24 ----
Index: config/i386/xm-ptx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-ptx.h,v
retrieving revision 1.3
diff -p -r1.3 xm-ptx.h
*** xm-ptx.h 2001/07/23 19:21:54 1.3
--- xm-ptx.h 2001/11/01 03:54:34
***************
*** 36,40 ****
#define USG
#define USE_O_NOCTTY
-
- #define HOST_BYTE_ORDER LITTLE_ENDIAN
--- 36,38 ----
Index: config/i386/xm-symmetry.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-symmetry.h,v
retrieving revision 1.2
diff -p -r1.2 xm-symmetry.h
*** xm-symmetry.h 2001/03/06 08:21:29 1.2
--- xm-symmetry.h 2001/11/01 03:54:34
***************
*** 26,30 ****
#define NO_SIGINTERRUPT
#define HAVE_WAIT_STRUCT
-
- #define HOST_BYTE_ORDER LITTLE_ENDIAN
--- 26,28 ----
Index: config/ia64/xm-aix.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/xm-aix.h,v
retrieving revision 1.3
diff -p -r1.3 xm-aix.h
*** xm-aix.h 2001/03/06 08:21:30 1.3
--- xm-aix.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#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"
--- 21,26 ----
Index: config/ia64/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/xm-linux.h,v
retrieving revision 1.5
diff -p -r1.5 xm-linux.h
*** xm-linux.h 2001/09/08 10:39:54 1.5
--- xm-linux.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#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
--- 21,26 ----
Index: config/m68k/xm-3b1.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-3b1.h,v
retrieving revision 1.2
diff -p -r1.2 xm-3b1.h
*** xm-3b1.h 2001/03/06 08:21:30 1.2
--- xm-3b1.h 2001/11/01 03:54:34
***************
*** 18,25 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
- #define HOST_BYTE_ORDER BIG_ENDIAN
-
#define HAVE_TERMIO
#define USG
--- 18,23 ----
Index: config/m68k/xm-apollo68b.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-apollo68b.h,v
retrieving revision 1.3
diff -p -r1.3 xm-apollo68b.h
*** xm-apollo68b.h 2001/03/06 08:21:30 1.3
--- xm-apollo68b.h 2001/11/01 03:54:34
***************
*** 18,23 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
- #define HOST_BYTE_ORDER BIG_ENDIAN
-
#define ALIGN_STACK_ON_STARTUP
--- 18,21 ----
Index: config/m68k/xm-apollo68v.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-apollo68v.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-apollo68v.h
*** xm-apollo68v.h 1999/07/07 20:14:42 1.1.1.2
--- xm-apollo68v.h 2001/11/01 03:54:34
***************
*** 23,30 ****
* 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.
--- 23,28 ----
Index: config/m68k/xm-delta68.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-delta68.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-delta68.h
*** xm-delta68.h 1999/07/07 20:14:43 1.1.1.2
--- xm-delta68.h 2001/11/01 03:54:34
***************
*** 18,25 ****
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
--- 18,23 ----
Index: config/m68k/xm-dpx2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-dpx2.h,v
retrieving revision 1.3
diff -p -r1.3 xm-dpx2.h
*** xm-dpx2.h 2001/08/24 12:19:59 1.3
--- xm-dpx2.h 2001/11/01 03:54:34
***************
*** 18,24 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
- #define HOST_BYTE_ORDER BIG_ENDIAN
-
#define HAVE_TERMIOS
#define USG
--- 18,22 ----
Index: config/m68k/xm-hp300bsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-hp300bsd.h,v
retrieving revision 1.4
diff -p -r1.4 xm-hp300bsd.h
*** xm-hp300bsd.h 2001/03/06 08:21:30 1.4
--- xm-hp300bsd.h 2001/11/01 03:54:34
***************
*** 25,32 ****
* 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. */
--- 25,30 ----
Index: config/m68k/xm-hp300hpux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-hp300hpux.h,v
retrieving revision 1.2
diff -p -r1.2 xm-hp300hpux.h
*** xm-hp300hpux.h 2001/03/06 08:21:30 1.2
--- xm-hp300hpux.h 2001/11/01 03:54:34
***************
*** 19,26 ****
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
--- 19,24 ----
Index: config/m68k/xm-m68k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-m68k.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-m68k.h
*** xm-m68k.h 1999/07/07 20:14:50 1.1.1.2
--- xm-m68k.h 2001/11/01 03:54:34
***************
*** 19,22 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
- #define HOST_BYTE_ORDER BIG_ENDIAN
--- 19,21 ----
Index: config/m68k/xm-m68klynx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-m68klynx.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-m68klynx.h
*** xm-m68klynx.h 1999/07/07 20:14:51 1.1.1.2
--- xm-m68klynx.h 2001/11/01 03:54:34
***************
*** 18,25 ****
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"
--- 18,23 ----
Index: config/m68k/xm-sun2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-sun2.h,v
retrieving revision 1.2
diff -p -r1.2 xm-sun2.h
*** xm-sun2.h 2001/03/06 08:21:30 1.2
--- xm-sun2.h 2001/11/01 03:54:34
***************
*** 18,25 ****
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. */
--- 18,23 ----
Index: config/m68k/xm-sun3.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-sun3.h,v
retrieving revision 1.2
diff -p -r1.2 xm-sun3.h
*** xm-sun3.h 2001/03/06 08:21:30 1.2
--- xm-sun3.h 2001/11/01 03:54:34
***************
*** 18,26 ****
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.
--- 18,23 ----
Index: config/m88k/xm-dgux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m88k/xm-dgux.h,v
retrieving revision 1.2
diff -p -r1.2 xm-dgux.h
*** xm-dgux.h 2001/03/06 08:21:31 1.2
--- xm-dgux.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#include "m88k/xm-m88k.h"
- #define HOST_BYTE_ORDER BIG_ENDIAN
-
#if !defined (USG)
#define USG 1
#endif
--- 21,26 ----
Index: config/m88k/xm-m88k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m88k/xm-m88k.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-m88k.h
*** xm-m88k.h 1999/07/07 20:15:12 1.1.1.2
--- xm-m88k.h 2001/11/01 03:54:34
***************
*** 1,21 ****
- /* 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
--- 0 ----
Index: config/mips/xm-irix3.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-irix3.h,v
retrieving revision 1.2
diff -p -r1.2 xm-irix3.h
*** xm-irix3.h 2001/03/06 08:21:32 1.2
--- xm-irix3.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#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) \
--- 21,26 ----
Index: config/mips/xm-irix5.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-irix5.h,v
retrieving revision 1.2
diff -p -r1.2 xm-irix5.h
*** xm-irix5.h 2001/03/06 08:21:32 1.2
--- xm-irix5.h 2001/11/01 03:54:34
***************
*** 21,28 ****
#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) \
--- 21,26 ----
Index: config/mips/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-linux.h,v
retrieving revision 1.2
diff -p -r1.2 xm-linux.h
*** xm-linux.h 2001/09/08 10:39:53 1.2
--- xm-linux.h 2001/11/01 03:54:34
***************
*** 21,33 ****
#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 */
--- 21,24 ----
Index: config/mips/xm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-mips.h,v
retrieving revision 1.3
diff -p -r1.3 xm-mips.h
*** xm-mips.h 2001/03/19 23:31:41 1.3
--- xm-mips.h 2001/11/01 03:54:34
***************
*** 21,30 ****
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>
--- 21,26 ----
Index: config/mips/xm-mipsm3.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-mipsm3.h,v
retrieving revision 1.2
diff -p -r1.2 xm-mipsm3.h
*** xm-mipsm3.h 2001/03/06 08:21:32 1.2
--- xm-mipsm3.h 2001/11/01 03:54:34
***************
*** 20,29 ****
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. */
--- 20,25 ----
Index: config/mips/xm-mipsv4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-mipsv4.h,v
retrieving revision 1.2
diff -p -r1.2 xm-mipsv4.h
*** xm-mipsv4.h 2001/03/06 08:21:32 1.2
--- xm-mipsv4.h 2001/11/01 03:54:34
***************
*** 20,24 ****
Boston, MA 02111-1307, USA. */
#include "xm-sysv4.h"
-
- #define HOST_BYTE_ORDER BIG_ENDIAN
--- 20,22 ----
Index: config/mips/xm-news-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-news-mips.h,v
retrieving revision 1.2
diff -p -r1.2 xm-news-mips.h
*** xm-news-mips.h 2001/03/06 08:21:32 1.2
--- xm-news-mips.h 2001/11/01 03:54:34
***************
*** 1,26 ****
- /* 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
--- 0 ----
Index: config/mips/xm-riscos.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-riscos.h,v
retrieving revision 1.2
diff -p -r1.2 xm-riscos.h
*** xm-riscos.h 2001/03/06 08:21:32 1.2
--- xm-riscos.h 2001/11/01 03:54:34
***************
*** 19,28 ****
#define HAVE_TERMIO
- #if !defined (HOST_BYTE_ORDER)
- #define HOST_BYTE_ORDER BIG_ENDIAN
- #endif
-
#define USG 1
/* setjmp.h requires uid_t. */
--- 19,24 ----
Index: config/pa/xm-hppab.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/xm-hppab.h,v
retrieving revision 1.2
diff -p -r1.2 xm-hppab.h
*** xm-hppab.h 2001/03/06 08:21:34 1.2
--- xm-hppab.h 2001/11/01 03:54:34
***************
*** 21,28 ****
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"
--- 21,24 ----
Index: config/pa/xm-hppah.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/xm-hppah.h,v
retrieving revision 1.7
diff -p -r1.7 xm-hppah.h
*** xm-hppah.h 2001/03/28 23:21:43 1.7
--- xm-hppah.h 2001/11/01 03:54:34
***************
*** 22,30 ****
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
--- 22,27 ----
Index: config/powerpc/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/xm-linux.h,v
retrieving revision 1.7
diff -p -r1.7 xm-linux.h
*** xm-linux.h 2001/09/08 10:39:53 1.7
--- xm-linux.h 2001/11/01 03:54:34
*************** Foundation, Inc., 59 Temple Place - Suit
*** 21,28 ****
#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
--- 21,26 ----
Index: config/romp/xm-rtbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/romp/xm-rtbsd.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-rtbsd.h
*** xm-rtbsd.h 1999/07/07 20:16:47 1.1.1.2
--- xm-rtbsd.h 2001/11/01 03:54:34
***************
*** 19,27 ****
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
--- 19,24 ----
Index: config/rs6000/xm-rs6000.h
===================================================================
RCS file: /cvs/src/src/gdb/config/rs6000/xm-rs6000.h,v
retrieving revision 1.7
diff -p -r1.7 xm-rs6000.h
*** xm-rs6000.h 2001/09/07 15:22:11 1.7
--- xm-rs6000.h 2001/11/01 03:54:35
***************
*** 37,44 ****
/* 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 */
--- 37,42 ----
Index: config/rs6000/xm-rs6000ly.h
===================================================================
RCS file: /cvs/src/src/gdb/config/rs6000/xm-rs6000ly.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-rs6000ly.h
*** xm-rs6000ly.h 1999/07/07 20:16:58 1.1.1.2
--- xm-rs6000ly.h 2001/11/01 03:54:35
***************
*** 21,28 ****
#ifndef XM_RS6000LYNX_H
#define XM_RS6000LYNX_H
- #define HOST_BYTE_ORDER BIG_ENDIAN
-
/* Get generic LynxOS host definitions. */
#include "xm-lynx.h"
--- 21,26 ----
Index: config/s390/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/s390/xm-linux.h,v
retrieving revision 1.2
diff -p -r1.2 xm-linux.h
*** xm-linux.h 2001/10/13 22:13:35 1.2
--- xm-linux.h 2001/11/01 03:54:35
***************
*** 23,31 ****
#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
--- 23,28 ----
Index: config/sparc/xm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/xm-sparc.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-sparc.h
*** xm-sparc.h 1999/07/07 20:17:21 1.1.1.2
--- xm-sparc.h 2001/11/01 03:54:35
***************
*** 1,23 ****
- /* 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
--- 0 ----
Index: config/sparc/xm-sparclynx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/xm-sparclynx.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-sparclynx.h
*** xm-sparclynx.h 1999/07/07 20:17:22 1.1.1.2
--- xm-sparclynx.h 2001/11/01 03:54:35
***************
*** 18,25 ****
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"
--- 18,23 ----
Index: config/vax/xm-vax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/xm-vax.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-vax.h
*** xm-vax.h 1999/07/07 20:17:33 1.1.1.2
--- xm-vax.h 2001/11/01 03:54:35
***************
*** 18,25 ****
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. */
--- 18,23 ----
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.41
diff -p -r1.41 gdbint.texinfo
*** gdbint.texinfo 2001/10/16 01:58:07 1.41
--- gdbint.texinfo 2001/11/01 03:54:51
*************** tables. For some machines this allows f
*** 2175,2185 ****
@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
--- 2175,2180 ----