+2001-12-15 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.
+
2001-12-15 Andrew Cagney <ac131313@redhat.com>
* ui-out.c (struct ui_out_table): Add field entry_level.
{
case BIG_ENDIAN:
return &floatformat_ieee_single_big;
- case LITTLE_ENDIAN:
+ case BFD_ENDIAN_LITTLE:
return &floatformat_ieee_single_little;
default:
internal_error (__FILE__, __LINE__,
{
case BIG_ENDIAN:
return &floatformat_ieee_double_big;
- case LITTLE_ENDIAN:
+ case BFD_ENDIAN_LITTLE:
return &floatformat_ieee_double_little;
default:
internal_error (__FILE__, __LINE__,
{
struct gdbarch_info info;
memset (&info, 0, sizeof info);
- info.byte_order = LITTLE_ENDIAN;
+ info.byte_order = BFD_ENDIAN_LITTLE;
if (! gdbarch_update_p (info))
{
printf_unfiltered ("Little endian target not supported by GDB\n");
}
else
{
- target_byte_order = LITTLE_ENDIAN;
+ target_byte_order = BFD_ENDIAN_LITTLE;
}
}
else if (set_endian_string == endian_big)
if (bfd_big_endian (abfd))
want = BIG_ENDIAN;
else
- want = LITTLE_ENDIAN;
+ want = BFD_ENDIAN_LITTLE;
if (TARGET_BYTE_ORDER_AUTO)
target_byte_order = want;
else if (TARGET_BYTE_ORDER != want)
info.byte_order = BIG_ENDIAN;
break;
case BFD_ENDIAN_LITTLE:
- info.byte_order = LITTLE_ENDIAN;
+ info.byte_order = BFD_ENDIAN_LITTLE;
break;
default:
break;
if (chp != NULL
&& chp - 2 >= target_name
&& strncmp (chp - 2, "el", 2) == 0)
- info.byte_order = LITTLE_ENDIAN;
+ info.byte_order = BFD_ENDIAN_LITTLE;
}
if (info.byte_order == 0)
{
struct symbol;
#if !defined (TARGET_BYTE_ORDER)
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif
/* Redefine some target bit sizes from the default. */
/* 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
+#define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
/* IEEE format floating point. */
#define IEEE_FLOAT (1)
struct value;
struct type;
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#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
#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
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* We have IEEE floating point, if we have any float at all. */
/* ia64 is little endian by default */
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#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
#include "regcache.h"
/* The mcore is little endian (by default) */
-#define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
/* All registers are 32 bits */
#define REGISTER_SIZE 4
void wince_software_single_step (unsigned int, int);
#undef TARGET_BYTE_ORDER_SELECTABLE
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif /* TM_WINCE_H */
#include "regcache.h"
/* The mn10200 is little endian. */
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* ints are only 16bits on the mn10200. */
#undef TARGET_INT_BIT
/* This is also included by tm-ns32km3.h, as well as being used by umax. */
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#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. */
#include "powerpc/tm-ppc-eabi.h"
#undef TARGET_BYTE_ORDER_DEFAULT
-#define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER_DEFAULT BFD_ENDIAN_LITTLE
#endif /* TM_PPCLE_EABI_H */
#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
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#endif /* TM_WINCE_H */
#include "regcache.h"
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
#define NUM_REGS 66
#include "regcache.h"
-#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+#define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
/* Offset from address of function to start of its code.
Zero on most machines. */
/* INIT shall ensure that the INFO.BYTE_ORDER is non-zero. */
switch (info.byte_order)
{
- case LITTLE_ENDIAN:
+ case BFD_ENDIAN_LITTLE:
/* Ok. */
break;
set_gdbarch_double_format (gdbarch, &floatformat_ieee_single_big);
set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
break;
- case LITTLE_ENDIAN:
+ 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);
#endif /* Not GNU C */
#endif /* alloca not defined */
-/* Get a definition of BIG_ENDIAN and LITTLE_ENDIAN. */
+/* 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
#define BIG_ENDIAN 4321
#endif
-#if !defined (LITTLE_ENDIAN)
-#define LITTLE_ENDIAN 1234
-#endif
-
/* Dynamic target-system-dependent parameters for GDB. */
#include "gdbarch.h"
#if (GDB_MULTI_ARCH == 0)
+2001-12-15 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbint.texinfo (Target Architecture Definition): Replace
+ LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
+
2001-12-01 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Host Definition): Delete documentation on
@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{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{LITTLE_ENDIAN} variants. This macro replaces
+@code{BFD_ENDIAN_LITTLE} variants. This macro replaces
@code{TARGET_BYTE_ORDER_SELECTABLE} which is deprecated.
@item TARGET_CHAR_BIT
0,
0,
0,
+ 0,
generic_get_saved_register,
0,
0,
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
+ : bfd_little_endian (info.abfd) ? BFD_ENDIAN_LITTLE
: 0);
/* From the current target. */
if (info.byte_order == 0)
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
- : info.byte_order == LITTLE_ENDIAN ? "little"
+ : info.byte_order == BFD_ENDIAN_LITTLE ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
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
+ : bfd_little_endian (info.abfd) ? BFD_ENDIAN_LITTLE
: 0);
/* From the current target. */
if (info.byte_order == 0)
"gdbarch_update: info.byte_order %d (%s)\n",
info.byte_order,
(info.byte_order == BIG_ENDIAN ? "big"
- : info.byte_order == LITTLE_ENDIAN ? "little"
+ : info.byte_order == BFD_ENDIAN_LITTLE ? "little"
: "default"));
fprintf_unfiltered (gdb_stdlog,
"gdbarch_update: info.abfd 0x%lx\n",
case SERIAL_TIMEOUT:
break;
case RDP_RES_VALUE_LITTLE_ENDIAN:
- target_byte_order = LITTLE_ENDIAN;
+ target_byte_order = BFD_ENDIAN_LITTLE;
sync = 1;
break;
case RDP_RES_VALUE_BIG_ENDIAN:
case BIG_ENDIAN:
strcat (arg_buf, " -E big");
break;
- case LITTLE_ENDIAN:
+ case BFD_ENDIAN_LITTLE:
strcat (arg_buf, " -E little");
break;
default:
if (len == 8 && TYPE_CODE (type) == TYPE_CODE_FLT)
{
DOUBLEST val;
- if (TARGET_BYTE_ORDER == LITTLE_ENDIAN)
+ if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
floatformat_to_doublest (&floatformat_ieee_double_littlebyte_bigword,
(char *) regbuf + REGISTER_BYTE (return_register),
&val);
int
sh_sh4_register_convertible (int nr)
{
- if (TARGET_BYTE_ORDER == LITTLE_ENDIAN)
+ if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
return (gdbarch_tdep (current_gdbarch)->DR0_REGNUM <= nr
&& nr <= gdbarch_tdep (current_gdbarch)->DR_LAST_REGNUM);
else
memcpy (valbuf,
®buf[O0_REGNUM * regsize +
(typelen >= regsize
- || TARGET_BYTE_ORDER == LITTLE_ENDIAN ? 0
+ || TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE ? 0
: regsize - typelen)],
typelen);
}
{
if (TARGET_BYTE_ORDER_SELECTABLE_P)
{
- target_byte_order = LITTLE_ENDIAN;
+ target_byte_order = BFD_ENDIAN_LITTLE;
bi_endian = 1;
}
else