This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix compile on big-endian platforms in siginfo_t converter.
- From: John Baldwin <jhb at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 15 Aug 2017 15:06:08 -0000
- Subject: [binutils-gdb] Fix compile on big-endian platforms in siginfo_t converter.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0335ac6d12906bfb4b48410d8a7229c21c727cf2
commit 0335ac6d12906bfb4b48410d8a7229c21c727cf2
Author: John Baldwin <jhb@FreeBSD.org>
Date: Tue Aug 15 08:04:23 2017 -0700
Fix compile on big-endian platforms in siginfo_t converter.
gdb/ChangeLog:
* fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
platforms.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/fbsd-nat.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d855595..fbf14dd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-15 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
+ platforms.
+
2017-08-14 Tom Tromey <tom@tromey.com>
* valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index c89343a..6ba6a01 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -314,7 +314,7 @@ fbsd_convert_siginfo (siginfo_t *si)
32-bits of the pointer value. */
#if _BYTE_ORDER == _BIG_ENDIAN
if (si->si_value.sival_int == 0)
- si32->si_value.sival_ptr = (uintptr_t) si->si_value.sival_ptr;
+ si32.si_value.sival_ptr = (uintptr_t) si->si_value.sival_ptr;
else
si32.si_value.sival_int = si->si_value.sival_int;
#else