Cast to enum bfd_endian in arm_get_next_pcs_read_memory_unsigned_integer
authorAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 18 Dec 2015 20:23:58 +0000 (15:23 -0500)
committerAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 18 Dec 2015 20:29:07 +0000 (15:29 -0500)
This patch fixes the cxx build broken by commit : d9311bfaf572cf14af577a66e79c51c491553552.

Pushed as obvious.

gdb/ChangeLog:

* arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
to enum bfd_endian)

gdb/ChangeLog
gdb/arm-tdep.c

index 56f87ceffb22546eaefeda027843b69d1690e98a..db2cdf46017430524cf1b557ae1d653a40f9ffd9 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
+
+       * arm-tdep.c (arm_get_next_pcs_read_memory_unsigned_integer): Cast
+       to enum bfd_endian)
+
 2015-12-18  Antoine Tremblay  <antoine.tremblay@ericsson.com>
 
        * Makefile.in (ALL_TARGET_OBS): Append arm-get-next-pcs.o,
index 52ce8d555544caa10bba0739e63407c6bbb6a22c..0e10dfda6e88ec58ce8ec9551bbad9a94ebcddcc 100644 (file)
@@ -6127,7 +6127,8 @@ ULONGEST
 arm_get_next_pcs_read_memory_unsigned_integer (CORE_ADDR memaddr, int len,
                                               int byte_order)
 {
-  return read_memory_unsigned_integer (memaddr, len, byte_order);
+  return read_memory_unsigned_integer (memaddr, len,
+                                      (enum bfd_endian) byte_order);
 }
 
 /* Wrapper over gdbarch_addr_bits_remove for use in arm_get_next_pcs.  */