/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright 2002-2017 Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
(unsigned_N)
endian_t2h_N(unsigned_N raw_in)
{
- if (CURRENT_TARGET_BYTE_ORDER == CURRENT_HOST_BYTE_ORDER) {
+ if (CURRENT_TARGET_BYTE_ORDER == HOST_BYTE_ORDER) {
return raw_in;
}
else {
(unsigned_N)
endian_h2t_N(unsigned_N raw_in)
{
- if (CURRENT_TARGET_BYTE_ORDER == CURRENT_HOST_BYTE_ORDER) {
+ if (CURRENT_TARGET_BYTE_ORDER == HOST_BYTE_ORDER) {
return raw_in;
}
else {
(unsigned_N)
endian_h2be_N(unsigned_N raw_in)
{
- if (CURRENT_HOST_BYTE_ORDER == BIG_ENDIAN) {
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_BIG) {
return raw_in;
}
else {
(unsigned_N)
endian_be2h_N(unsigned_N raw_in)
{
- if (CURRENT_HOST_BYTE_ORDER == BIG_ENDIAN) {
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_BIG) {
return raw_in;
}
else {
(unsigned_N)
endian_h2le_N(unsigned_N raw_in)
{
- if (CURRENT_HOST_BYTE_ORDER == LITTLE_ENDIAN) {
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) {
return raw_in;
}
else {
(unsigned_N)
endian_le2h_N(unsigned_N raw_in)
{
- if (CURRENT_HOST_BYTE_ORDER == LITTLE_ENDIAN) {
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) {
return raw_in;
}
else {
ASSERT (offset + sizeof_word <= sizeof(unsigned_N));
ASSERT (word < (sizeof (unsigned_N) / sizeof_word));
ASSERT ((sizeof (unsigned_N) % sizeof_word) == 0);
- if (WITH_HOST_BYTE_ORDER == LITTLE_ENDIAN)
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
out = in + sizeof (unsigned_N) - offset - sizeof_word;
}