Fix compile on big-endian platforms in siginfo_t converter.
gdb/ChangeLog: * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian platforms.
This commit is contained in:
parent
8975f86409
commit
0335ac6d12
|
@ -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>
|
2017-08-14 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
|
* valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
|
||||||
|
|
|
@ -314,7 +314,7 @@ fbsd_convert_siginfo (siginfo_t *si)
|
||||||
32-bits of the pointer value. */
|
32-bits of the pointer value. */
|
||||||
#if _BYTE_ORDER == _BIG_ENDIAN
|
#if _BYTE_ORDER == _BIG_ENDIAN
|
||||||
if (si->si_value.sival_int == 0)
|
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
|
else
|
||||||
si32.si_value.sival_int = si->si_value.sival_int;
|
si32.si_value.sival_int = si->si_value.sival_int;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue