Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144498640
D12182.1775010695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12182.1775010695.diff
View Options
Index: head/devel/gdb/Makefile
===================================================================
--- head/devel/gdb/Makefile
+++ head/devel/gdb/Makefile
@@ -48,7 +48,8 @@
${FILESDIR}/commit-4b654465bf \
${FILESDIR}/commit-b30ff123fb \
${FILESDIR}/commit-48aeef91c2 \
- ${FILESDIR}/commit-0aa37b654c
+ ${FILESDIR}/commit-0aa37b654c \
+ ${FILESDIR}/commit-0335ac6d12
LIB_DEPENDS+= libexpat.so:textproc/expat2
VER= ${PORTVERSION:S/.//g}
Index: head/devel/gdb/files/commit-0335ac6d12
===================================================================
--- head/devel/gdb/files/commit-0335ac6d12
+++ head/devel/gdb/files/commit-0335ac6d12
@@ -0,0 +1,24 @@
+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 --git gdb/fbsd-nat.c gdb/fbsd-nat.c
+index c89343a24f..6ba6a01a70 100644
+--- gdb/fbsd-nat.c
++++ 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
Index: head/devel/gdb/files/kgdb/ppcfbsd-kern.c
===================================================================
--- head/devel/gdb/files/kgdb/ppcfbsd-kern.c
+++ head/devel/gdb/files/kgdb/ppcfbsd-kern.c
@@ -58,7 +58,7 @@
tdep = gdbarch_tdep (target_gdbarch());
- if (target_read_memory(pcb_addr, &pcb, sizeof(pcb)) != 0)
+ if (target_read_memory(pcb_addr, (gdb_byte *)&pcb, sizeof(pcb)) != 0)
memset(&pcb, 0, sizeof(pcb));
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 1, 2:31 AM (6 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28237328
Default Alt Text
D12182.1775010695.diff (1 KB)
Attached To
Mode
D12182: Fix build on MIPS and powerpc.
Attached
Detach File
Event Timeline
Log In to Comment