aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-12-15 16:53:24 +0000
committerAndrew Cagney <cagney@redhat.com>2001-12-15 16:53:24 +0000
commit778eb05eacb13ba46d6b60d9157fcc32db8433a2 (patch)
tree2b66c1e99b806a1f85109d0c20fee47368448f96 /gdb/arch-utils.c
parent5b6a02bcf409bfba5fafa2e71d2296e2429de038 (diff)
downloadgdb-778eb05eacb13ba46d6b60d9157fcc32db8433a2.zip
gdb-778eb05eacb13ba46d6b60d9157fcc32db8433a2.tar.gz
gdb-778eb05eacb13ba46d6b60d9157fcc32db8433a2.tar.bz2
LITTLE_ENDIAN -> BFD_ENDIAN_LITTLE
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index d01ab69..d7e82d7 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -195,7 +195,7 @@ default_float_format (struct gdbarch *gdbarch)
{
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__,
@@ -216,7 +216,7 @@ default_double_format (struct gdbarch *gdbarch)
{
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__,
@@ -467,7 +467,7 @@ set_endian (char *ignore_args, int from_tty, struct cmd_list_element *c)
{
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");
@@ -475,7 +475,7 @@ set_endian (char *ignore_args, int from_tty, struct cmd_list_element *c)
}
else
{
- target_byte_order = LITTLE_ENDIAN;
+ target_byte_order = BFD_ENDIAN_LITTLE;
}
}
else if (set_endian_string == endian_big)
@@ -517,7 +517,7 @@ set_endian_from_file (bfd *abfd)
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)
@@ -771,7 +771,7 @@ initialize_current_architecture (void)
info.byte_order = BIG_ENDIAN;
break;
case BFD_ENDIAN_LITTLE:
- info.byte_order = LITTLE_ENDIAN;
+ info.byte_order = BFD_ENDIAN_LITTLE;
break;
default:
break;
@@ -785,7 +785,7 @@ initialize_current_architecture (void)
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)
{