diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-08-15 08:04:23 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-08-15 08:05:21 -0700 |
commit | 0335ac6d12906bfb4b48410d8a7229c21c727cf2 (patch) | |
tree | e9be67e9e9e4253c29bd170d5ffd0d077457fd89 /gdb/fbsd-nat.c | |
parent | 8975f864092f0a1ba561622ba137b305da4a362f (diff) | |
download | gdb-0335ac6d12906bfb4b48410d8a7229c21c727cf2.zip gdb-0335ac6d12906bfb4b48410d8a7229c21c727cf2.tar.gz gdb-0335ac6d12906bfb4b48410d8a7229c21c727cf2.tar.bz2 |
Fix compile on big-endian platforms in siginfo_t converter.
gdb/ChangeLog:
* fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
platforms.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |