This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] LITTLE_ENDIAN -> BFD_ENDIAN_LITTLE
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 03 Dec 2001 23:52:23 -0500
- Subject: [patch/rfc] LITTLE_ENDIAN -> BFD_ENDIAN_LITTLE
Hello,
Ref: http://sources.redhat.com/ml/gdb/2001-10/msg00276.html
The attached replaces the host dependant LITTLE_ENDIAN macro with BFD's
BFD_ENDIAN_LITTLE enum.
As a follow-up I'll do the other half - BIG_ENDIAN.
If no one yells, I'll commit this half in a few days. The other option
is to hit both at once.
enjoy,
Andrew
2001-12-03 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Replace
LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
2001-12-03 Andrew Cagney <ac131313@redhat.com>
* defs.h (LITTLE_ENDIAN): Delete definition.
* arch-utils.c, cris-tdep.c, d10v-tdep.c, defs.h, gdbarch.c,
gdbarch.sh, remote-rdp.c, remote-sim.c, sh-tdep.c, sparc-tdep.c,
config/alpha/tm-alpha.h, config/arm/tm-arm.h,
config/i386/tm-i386.h, config/i960/tm-i960.h,
config/ia64/tm-ia64.h, config/mcore/tm-mcore.h,
config/mips/tm-wince.h, config/mn10200/tm-mn10200.h,
config/ns32k/tm-umax.h, config/powerpc/tm-ppcle-eabi.h,
config/sh/tm-wince.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
doc/gdbint.texinfo: Replace LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.39
diff -p -r1.39 arch-utils.c
*** arch-utils.c 2001/11/29 22:24:42 1.39
--- arch-utils.c 2001/12/04 04:39:25
*************** default_float_format (struct gdbarch *gd
*** 195,201 ****
{
case BIG_ENDIAN:
return &floatformat_ieee_single_big;
! case LITTLE_ENDIAN:
return &floatformat_ieee_single_little;
default:
internal_error (__FILE__, __LINE__,
--- 195,201 ----
{
case BIG_ENDIAN:
return &floatformat_ieee_single_big;
! case BFD_ENDIAN_LITTLE:
return &floatformat_ieee_single_little;
default:
internal_error (__FILE__, __LINE__,
*************** default_double_format (struct gdbarch *g
*** 216,222 ****
{
case BIG_ENDIAN:
return &floatformat_ieee_double_big;
! case LITTLE_ENDIAN:
return &floatformat_ieee_double_little;
default:
internal_error (__FILE__, __LINE__,
--- 216,222 ----
{
case BIG_ENDIAN:
return &floatformat_ieee_double_big;
! case BFD_ENDIAN_LITTLE:
return &floatformat_ieee_double_little;
default:
internal_error (__FILE__, __LINE__,
*************** set_endian (char *ignore_args, int from_
*** 448,454 ****
{
struct gdbarch_info info;
memset (&info, 0, sizeof info);
! info.byte_order = LITTLE_ENDIAN;
if (! gdbarch_update_p (info))
{
printf_unfiltered ("Little endian target not supported by GDB\n");
--- 448,454 ----
{
struct gdbarch_info info;
memset (&info, 0, sizeof info);
! info.byte_order = BFD_ENDIAN_LITTLE;
if (! gdbarch_update_p (info))
{
printf_unfiltered ("Little endian target not supported by GDB\n");
*************** set_endian (char *ignore_args, int from_
*** 456,462 ****
}
else
{
! target_byte_order = LITTLE_ENDIAN;
}
}
else if (set_endian_string == endian_big)
--- 456,462 ----
}
else
{
! target_byte_order = BFD_ENDIAN_LITTLE;
}
}
else if (set_endian_string == endian_big)
*************** set_endian_from_file (bfd *abfd)
*** 498,504 ****
if (bfd_big_endian (abfd))
want = BIG_ENDIAN;
else
! want = LITTLE_ENDIAN;
if (TARGET_BYTE_ORDER_AUTO)
target_byte_order = want;
else if (TARGET_BYTE_ORDER != want)
--- 498,504 ----
if (bfd_big_endian (abfd))
want = BIG_ENDIAN;
else
! want = BFD_ENDIAN_LITTLE;
if (TARGET_BYTE_ORDER_AUTO)
target_byte_order = want;
else if (TARGET_BYTE_ORDER != want)
*************** initialize_current_architecture (void)
*** 752,758 ****
info.byte_order = BIG_ENDIAN;
break;
case BFD_ENDIAN_LITTLE:
! info.byte_order = LITTLE_ENDIAN;
break;
default:
break;
--- 752,758 ----
info.byte_order = BIG_ENDIAN;
break;
case BFD_ENDIAN_LITTLE:
! info.byte_order = BFD_ENDIAN_LITTLE;
break;
default:
break;
*************** initialize_current_architecture (void)
*** 766,772 ****
if (chp != NULL
&& chp - 2 >= target_name
&& strncmp (chp - 2, "el", 2) == 0)
! info.byte_order = LITTLE_ENDIAN;
}
if (info.byte_order == 0)
{
--- 766,772 ----
if (chp != NULL
&& chp - 2 >= target_name
&& strncmp (chp - 2, "el", 2) == 0)
! info.byte_order = BFD_ENDIAN_LITTLE;
}
if (info.byte_order == 0)
{
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.5
diff -p -r1.5 cris-tdep.c
*** cris-tdep.c 2001/10/26 14:54:24 1.5
--- cris-tdep.c 2001/12/04 04:39:34
*************** cris_gdbarch_init (struct gdbarch_info i
*** 3788,3794 ****
/* INIT shall ensure that the INFO.BYTE_ORDER is non-zero. */
switch (info.byte_order)
{
! case LITTLE_ENDIAN:
/* Ok. */
break;
--- 3788,3794 ----
/* INIT shall ensure that the INFO.BYTE_ORDER is non-zero. */
switch (info.byte_order)
{
! case BFD_ENDIAN_LITTLE:
/* Ok. */
break;
Index: d10v-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/d10v-tdep.c,v
retrieving revision 1.26
diff -p -r1.26 d10v-tdep.c
*** d10v-tdep.c 2001/11/15 02:18:46 1.26
--- d10v-tdep.c 2001/12/04 04:39:35
*************** d10v_gdbarch_init (struct gdbarch_info i
*** 1511,1517 ****
set_gdbarch_double_format (gdbarch, &floatformat_ieee_single_big);
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
break;
! case LITTLE_ENDIAN:
set_gdbarch_float_format (gdbarch, &floatformat_ieee_single_little);
set_gdbarch_double_format (gdbarch, &floatformat_ieee_single_little);
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_little);
--- 1511,1517 ----
set_gdbarch_double_format (gdbarch, &floatformat_ieee_single_big);
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
break;
! case BFD_ENDIAN_LITTLE:
set_gdbarch_float_format (gdbarch, &floatformat_ieee_single_little);
set_gdbarch_double_format (gdbarch, &floatformat_ieee_single_little);
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_little);
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.66
diff -p -r1.66 defs.h
*** defs.h 2001/12/02 02:57:13 1.66
--- defs.h 2001/12/04 04:39:37
*************** extern void *alloca ();
*** 1237,1243 ****
#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
--- 1237,1243 ----
#endif /* Not GNU C */
#endif /* alloca not defined */
! /* Get a definition of BIG_ENDIAN and BFD_ENDIAN_LITTLE. */
/* FIXME: cagney/2001-10-31: GDB should just use BFD's definitions. */
#ifdef HAVE_ENDIAN_H
*************** extern void *alloca ();
*** 1246,1255 ****
#if !defined (BIG_ENDIAN)
#define BIG_ENDIAN 4321
- #endif
-
- #if !defined (LITTLE_ENDIAN)
- #define LITTLE_ENDIAN 1234
#endif
/* Dynamic target-system-dependent parameters for GDB. */
--- 1246,1251 ----
Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.88
diff -p -r1.88 gdbarch.c
*** gdbarch.c 2001/11/22 00:23:11 1.88
--- gdbarch.c 2001/12/04 04:39:42
*************** gdbarch_update_p (struct gdbarch_info in
*** 4672,4678 ****
if (info.byte_order == 0
&& info.abfd != NULL)
info.byte_order = (bfd_big_endian (info.abfd) ? BIG_ENDIAN
! : bfd_little_endian (info.abfd) ? LITTLE_ENDIAN
: 0);
/* From the current target. */
if (info.byte_order == 0)
--- 4672,4678 ----
if (info.byte_order == 0
&& info.abfd != NULL)
info.byte_order = (bfd_big_endian (info.abfd) ? BIG_ENDIAN
! : bfd_little_endian (info.abfd) ? BFD_ENDIAN_LITTLE
: 0);
/* From the current target. */
if (info.byte_order == 0)
*************** gdbarch_update_p (struct gdbarch_info in
*** 4692,4698 ****
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
! : info.byte_order == LITTLE_ENDIAN ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
--- 4692,4698 ----
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
! : info.byte_order == BFD_ENDIAN_LITTLE ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.93
diff -p -r1.93 gdbarch.sh
*** gdbarch.sh 2001/11/22 00:23:12 1.93
--- gdbarch.sh 2001/12/04 04:39:46
*************** gdbarch_update_p (struct gdbarch_info in
*** 2043,2049 ****
if (info.byte_order == 0
&& info.abfd != NULL)
info.byte_order = (bfd_big_endian (info.abfd) ? BIG_ENDIAN
! : bfd_little_endian (info.abfd) ? LITTLE_ENDIAN
: 0);
/* From the current target. */
if (info.byte_order == 0)
--- 2043,2049 ----
if (info.byte_order == 0
&& info.abfd != NULL)
info.byte_order = (bfd_big_endian (info.abfd) ? BIG_ENDIAN
! : bfd_little_endian (info.abfd) ? BFD_ENDIAN_LITTLE
: 0);
/* From the current target. */
if (info.byte_order == 0)
*************** gdbarch_update_p (struct gdbarch_info in
*** 2063,2069 ****
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
! : info.byte_order == LITTLE_ENDIAN ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
--- 2063,2069 ----
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
! : info.byte_order == BFD_ENDIAN_LITTLE ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
Index: remote-rdp.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdp.c,v
retrieving revision 1.20
diff -p -r1.20 remote-rdp.c
*** remote-rdp.c 2001/07/15 20:34:13 1.20
--- remote-rdp.c 2001/12/04 04:39:53
*************** rdp_init (int cold, int tty)
*** 349,355 ****
case SERIAL_TIMEOUT:
break;
case RDP_RES_VALUE_LITTLE_ENDIAN:
! target_byte_order = LITTLE_ENDIAN;
sync = 1;
break;
case RDP_RES_VALUE_BIG_ENDIAN:
--- 349,355 ----
case SERIAL_TIMEOUT:
break;
case RDP_RES_VALUE_LITTLE_ENDIAN:
! target_byte_order = BFD_ENDIAN_LITTLE;
sync = 1;
break;
case RDP_RES_VALUE_BIG_ENDIAN:
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.17
diff -p -r1.17 remote-sim.c
*** remote-sim.c 2001/06/10 16:25:51 1.17
--- remote-sim.c 2001/12/04 04:39:57
*************** gdbsim_open (char *args, int from_tty)
*** 480,486 ****
case BIG_ENDIAN:
strcat (arg_buf, " -E big");
break;
! case LITTLE_ENDIAN:
strcat (arg_buf, " -E little");
break;
default:
--- 480,486 ----
case BIG_ENDIAN:
strcat (arg_buf, " -E big");
break;
! case BFD_ENDIAN_LITTLE:
strcat (arg_buf, " -E little");
break;
default:
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.40
diff -p -r1.40 sh-tdep.c
*** sh-tdep.c 2001/09/05 23:44:44 1.40
--- sh-tdep.c 2001/12/04 04:39:58
*************** sh3e_sh4_extract_return_value (struct ty
*** 1034,1040 ****
if (len == 8 && TYPE_CODE (type) == TYPE_CODE_FLT)
{
DOUBLEST val;
! if (TARGET_BYTE_ORDER == LITTLE_ENDIAN)
floatformat_to_doublest (&floatformat_ieee_double_littlebyte_bigword,
(char *) regbuf + REGISTER_BYTE (return_register),
&val);
--- 1034,1040 ----
if (len == 8 && TYPE_CODE (type) == TYPE_CODE_FLT)
{
DOUBLEST val;
! if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
floatformat_to_doublest (&floatformat_ieee_double_littlebyte_bigword,
(char *) regbuf + REGISTER_BYTE (return_register),
&val);
*************** sh_default_register_virtual_type (int re
*** 1536,1542 ****
int
sh_sh4_register_convertible (int nr)
{
! if (TARGET_BYTE_ORDER == LITTLE_ENDIAN)
return (gdbarch_tdep (current_gdbarch)->DR0_REGNUM <= nr
&& nr <= gdbarch_tdep (current_gdbarch)->DR_LAST_REGNUM);
else
--- 1536,1542 ----
int
sh_sh4_register_convertible (int nr)
{
! if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
return (gdbarch_tdep (current_gdbarch)->DR0_REGNUM <= nr
&& nr <= gdbarch_tdep (current_gdbarch)->DR_LAST_REGNUM);
else
Index: sparc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-tdep.c,v
retrieving revision 1.18
diff -p -r1.18 sparc-tdep.c
*** sparc-tdep.c 2001/07/15 20:10:02 1.18
--- sparc-tdep.c 2001/12/04 04:40:04
*************** sparc32_extract_return_value (struct typ
*** 2063,2069 ****
memcpy (valbuf,
®buf[O0_REGNUM * regsize +
(typelen >= regsize
! || TARGET_BYTE_ORDER == LITTLE_ENDIAN ? 0
: regsize - typelen)],
typelen);
}
--- 2063,2069 ----
memcpy (valbuf,
®buf[O0_REGNUM * regsize +
(typelen >= regsize
! || TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE ? 0
: regsize - typelen)],
typelen);
}
*************** sparc_target_architecture_hook (const bf
*** 2202,2208 ****
{
if (TARGET_BYTE_ORDER_SELECTABLE_P)
{
! target_byte_order = LITTLE_ENDIAN;
bi_endian = 1;
}
else
--- 2202,2208 ----
{
if (TARGET_BYTE_ORDER_SELECTABLE_P)
{
! target_byte_order = BFD_ENDIAN_LITTLE;
bi_endian = 1;
}
else
Index: config/alpha/tm-alpha.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alpha.h,v
retrieving revision 1.6
diff -p -r1.6 tm-alpha.h
*** tm-alpha.h 2001/03/14 23:23:08 1.6
--- tm-alpha.h 2001/12/04 04:40:05
*************** struct value;
*** 34,40 ****
struct symbol;
#if !defined (TARGET_BYTE_ORDER)
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
#endif
/* Redefine some target bit sizes from the default. */
--- 34,40 ----
struct symbol;
#if !defined (TARGET_BYTE_ORDER)
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif
/* Redefine some target bit sizes from the default. */
Index: config/arm/tm-arm.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/tm-arm.h,v
retrieving revision 1.8
diff -p -r1.8 tm-arm.h
*** tm-arm.h 2001/11/14 08:18:33 1.8
--- tm-arm.h 2001/12/04 04:40:08
*************** struct value;
*** 32,38 ****
/* Target byte order on ARM defaults to selectable, and defaults to
little endian. */
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
! #define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
/* IEEE format floating point. */
#define IEEE_FLOAT (1)
--- 32,38 ----
/* Target byte order on ARM defaults to selectable, and defaults to
little endian. */
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
! #define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
/* IEEE format floating point. */
#define IEEE_FLOAT (1)
Index: config/i386/tm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386.h,v
retrieving revision 1.25
diff -p -r1.25 tm-i386.h
*** tm-i386.h 2001/11/18 22:14:13 1.25
--- tm-i386.h 2001/12/04 04:40:08
*************** struct frame_saved_regs;
*** 32,38 ****
struct value;
struct type;
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* The format used for `long double' on almost all i386 targets is the
i387 extended floating-point format. In fact, of all targets in the
--- 32,38 ----
struct value;
struct type;
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* The format used for `long double' on almost all i386 targets is the
i387 extended floating-point format. In fact, of all targets in the
Index: config/i960/tm-i960.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i960/tm-i960.h,v
retrieving revision 1.5
diff -p -r1.5 tm-i960.h
*** tm-i960.h 2001/11/13 03:10:35 1.5
--- tm-i960.h 2001/12/04 04:40:09
***************
*** 39,45 ****
#define DBX_PARM_SYMBOL_CLASS(type) ((type == N_LSYM)? LOC_LOCAL_ARG: LOC_ARG)
/* Byte order is configurable, but this machine runs little-endian. */
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* We have IEEE floating point, if we have any float at all. */
--- 39,45 ----
#define DBX_PARM_SYMBOL_CLASS(type) ((type == N_LSYM)? LOC_LOCAL_ARG: LOC_ARG)
/* Byte order is configurable, but this machine runs little-endian. */
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* We have IEEE floating point, if we have any float at all. */
Index: config/ia64/tm-ia64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/tm-ia64.h,v
retrieving revision 1.2
diff -p -r1.2 tm-ia64.h
*** tm-ia64.h 2001/03/06 08:21:30 1.2
--- tm-ia64.h 2001/12/04 04:40:09
***************
*** 29,35 ****
/* ia64 is little endian by default */
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* Say how long (ordinary) registers are. This is a piece of bogosity
used in push_word and a few other places; REGISTER_RAW_SIZE is the
--- 29,35 ----
/* ia64 is little endian by default */
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* Say how long (ordinary) registers are. This is a piece of bogosity
used in push_word and a few other places; REGISTER_RAW_SIZE is the
Index: config/mcore/tm-mcore.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mcore/tm-mcore.h,v
retrieving revision 1.6
diff -p -r1.6 tm-mcore.h
*** tm-mcore.h 2001/09/19 20:43:54 1.6
--- tm-mcore.h 2001/12/04 04:40:09
***************
*** 21,27 ****
#include "regcache.h"
/* The mcore is little endian (by default) */
! #define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
/* All registers are 32 bits */
#define REGISTER_SIZE 4
--- 21,27 ----
#include "regcache.h"
/* The mcore is little endian (by default) */
! #define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
/* All registers are 32 bits */
#define REGISTER_SIZE 4
Index: config/mips/tm-wince.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-wince.h,v
retrieving revision 1.3
diff -p -r1.3 tm-wince.h
*** tm-wince.h 2001/03/20 18:16:18 1.3
--- tm-wince.h 2001/12/04 04:40:09
***************
*** 30,35 ****
void wince_software_single_step (unsigned int, int);
#undef TARGET_BYTE_ORDER_SELECTABLE
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
#endif /* TM_WINCE_H */
--- 30,35 ----
void wince_software_single_step (unsigned int, int);
#undef TARGET_BYTE_ORDER_SELECTABLE
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif /* TM_WINCE_H */
Index: config/mn10200/tm-mn10200.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mn10200/tm-mn10200.h,v
retrieving revision 1.5
diff -p -r1.5 tm-mn10200.h
*** tm-mn10200.h 2001/03/06 08:21:32 1.5
--- tm-mn10200.h 2001/12/04 04:40:09
***************
*** 26,32 ****
#include "regcache.h"
/* The mn10200 is little endian. */
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* ints are only 16bits on the mn10200. */
#undef TARGET_INT_BIT
--- 26,32 ----
#include "regcache.h"
/* The mn10200 is little endian. */
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* ints are only 16bits on the mn10200. */
#undef TARGET_INT_BIT
Index: config/ns32k/tm-umax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ns32k/tm-umax.h,v
retrieving revision 1.6
diff -p -r1.6 tm-umax.h
*** tm-umax.h 2001/03/28 21:26:07 1.6
--- tm-umax.h 2001/12/04 04:40:09
***************
*** 23,29 ****
/* This is also included by tm-ns32km3.h, as well as being used by umax. */
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* Need to get function ends by adding this to epilogue address from .bf
record, not using x_fsize field. */
--- 23,29 ----
/* This is also included by tm-ns32km3.h, as well as being used by umax. */
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* Need to get function ends by adding this to epilogue address from .bf
record, not using x_fsize field. */
Index: config/powerpc/tm-ppcle-eabi.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/tm-ppcle-eabi.h,v
retrieving revision 1.2
diff -p -r1.2 tm-ppcle-eabi.h
*** tm-ppcle-eabi.h 2001/03/06 08:21:34 1.2
--- tm-ppcle-eabi.h 2001/12/04 04:40:09
***************
*** 26,31 ****
#include "powerpc/tm-ppc-eabi.h"
#undef TARGET_BYTE_ORDER_DEFAULT
! #define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
#endif /* TM_PPCLE_EABI_H */
--- 26,31 ----
#include "powerpc/tm-ppc-eabi.h"
#undef TARGET_BYTE_ORDER_DEFAULT
! #define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
#endif /* TM_PPCLE_EABI_H */
Index: config/sh/tm-wince.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sh/tm-wince.h,v
retrieving revision 1.4
diff -p -r1.4 tm-wince.h
*** tm-wince.h 2001/03/20 18:16:24 1.4
--- tm-wince.h 2001/12/04 04:40:09
***************
*** 29,34 ****
#define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
void wince_software_single_step (unsigned int, int);
#undef TARGET_BYTE_ORDER_SELECTABLE
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
#endif /* TM_WINCE_H */
--- 29,34 ----
#define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
void wince_software_single_step (unsigned int, int);
#undef TARGET_BYTE_ORDER_SELECTABLE
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif /* TM_WINCE_H */
Index: config/v850/tm-v850.h
===================================================================
RCS file: /cvs/src/src/gdb/config/v850/tm-v850.h,v
retrieving revision 1.5
diff -p -r1.5 tm-v850.h
*** tm-v850.h 2001/03/14 23:23:15 1.5
--- tm-v850.h 2001/12/04 04:40:10
***************
*** 21,27 ****
#include "regcache.h"
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
#define NUM_REGS 66
--- 21,27 ----
#include "regcache.h"
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#define NUM_REGS 66
Index: config/vax/tm-vax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/tm-vax.h,v
retrieving revision 1.4
diff -p -r1.4 tm-vax.h
*** tm-vax.h 2001/03/14 23:23:16 1.4
--- tm-vax.h 2001/12/04 04:40:10
***************
*** 21,27 ****
#include "regcache.h"
! #define TARGET_BYTE_ORDER LITTLE_ENDIAN
/* Offset from address of function to start of its code.
Zero on most machines. */
--- 21,27 ----
#include "regcache.h"
! #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* Offset from address of function to start of its code.
Zero on most machines. */
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.47
diff -p -r1.47 gdbint.texinfo
*** gdbint.texinfo 2001/12/02 02:57:18 1.47
--- gdbint.texinfo 2001/12/04 04:40:18
*************** current sources.)
*** 3488,3500 ****
@item TARGET_BYTE_ORDER_DEFAULT
@findex TARGET_BYTE_ORDER_DEFAULT
The ordering of bytes in the target. This must be either
! @code{BIG_ENDIAN} or @code{LITTLE_ENDIAN}. This macro replaces
@code{TARGET_BYTE_ORDER} which is deprecated.
@item TARGET_BYTE_ORDER_SELECTABLE_P
@findex TARGET_BYTE_ORDER_SELECTABLE_P
Non-zero if the target has both @code{BIG_ENDIAN} and
! @code{LITTLE_ENDIAN} variants. This macro replaces
@code{TARGET_BYTE_ORDER_SELECTABLE} which is deprecated.
@item TARGET_CHAR_BIT
--- 3488,3500 ----
@item TARGET_BYTE_ORDER_DEFAULT
@findex TARGET_BYTE_ORDER_DEFAULT
The ordering of bytes in the target. This must be either
! @code{BIG_ENDIAN} or @code{BFD_ENDIAN_LITTLE}. This macro replaces
@code{TARGET_BYTE_ORDER} which is deprecated.
@item TARGET_BYTE_ORDER_SELECTABLE_P
@findex TARGET_BYTE_ORDER_SELECTABLE_P
Non-zero if the target has both @code{BIG_ENDIAN} and
! @code{BFD_ENDIAN_LITTLE} variants. This macro replaces
@code{TARGET_BYTE_ORDER_SELECTABLE} which is deprecated.
@item TARGET_CHAR_BIT