This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Cast to enum bfd_endian in arm_get_next_pcs_read_memory_unsigned_integer
- From: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Date: Fri, 18 Dec 2015 15:31:15 -0500
- Subject: [PATCH OBV] Cast to enum bfd_endian in arm_get_next_pcs_read_memory_unsigned_integer
- Authentication-results: sourceware.org; auth=none
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 | 5 +++++
gdb/arm-tdep.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 56f87ce..db2cdf4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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,
arm-linux.o.
(ALLDEPFILES): Append arm-get-next-pcs.c, arm-linux.c
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 52ce8d5..0e10dfd 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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. */
--
2.6.3