From owner-svn-ports-all@freebsd.org Wed Sep 13 14:27:15 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3B24E23AEA; Wed, 13 Sep 2017 14:27:15 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E3E266BBA; Wed, 13 Sep 2017 14:27:15 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8DEREgR056627; Wed, 13 Sep 2017 14:27:14 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8DERENq056624; Wed, 13 Sep 2017 14:27:14 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201709131427.v8DERENq056624@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Wed, 13 Sep 2017 14:27:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449795 - in head/devel/gdb: . files files/kgdb X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/devel/gdb: . files files/kgdb X-SVN-Commit-Revision: 449795 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 14:27:15 -0000 Author: pizzamig Date: Wed Sep 13 14:27:14 2017 New Revision: 449795 URL: https://svnweb.freebsd.org/changeset/ports/449795 Log: devel/gdb: Fix build on MIPS and powerpc Fixing build on big-endian 64bit platforms, like MIPS and powerpc Submitted by: jhb Reviewed by: andreast Approved by: olivier (mentor) Differential Revision: https://reviews.freebsd.org/D12182 Added: head/devel/gdb/files/commit-0335ac6d12 (contents, props changed) Modified: head/devel/gdb/Makefile head/devel/gdb/files/kgdb/ppcfbsd-kern.c Modified: head/devel/gdb/Makefile ============================================================================== --- head/devel/gdb/Makefile Wed Sep 13 14:20:38 2017 (r449794) +++ head/devel/gdb/Makefile Wed Sep 13 14:27:14 2017 (r449795) @@ -48,7 +48,8 @@ EXTRA_PATCHES= ${FILESDIR}/commit-45eba0ab7d \ ${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} Added: head/devel/gdb/files/commit-0335ac6d12 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gdb/files/commit-0335ac6d12 Wed Sep 13 14:27:14 2017 (r449795) @@ -0,0 +1,24 @@ +commit 0335ac6d12906bfb4b48410d8a7229c21c727cf2 +Author: John Baldwin +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 Modified: head/devel/gdb/files/kgdb/ppcfbsd-kern.c ============================================================================== --- head/devel/gdb/files/kgdb/ppcfbsd-kern.c Wed Sep 13 14:20:38 2017 (r449794) +++ head/devel/gdb/files/kgdb/ppcfbsd-kern.c Wed Sep 13 14:27:14 2017 (r449795) @@ -58,7 +58,7 @@ ppcfbsd_supply_pcb(struct regcache *regcache, CORE_ADD 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)); /*