From owner-svn-ports-all@FreeBSD.ORG Tue Aug 12 15:39:59 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A98F425E for ; Tue, 12 Aug 2014 15:39:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80BFF20FD for ; Tue, 12 Aug 2014 15:39:59 +0000 (UTC) Received: from tijl (uid 1230) (envelope-from tijl@FreeBSD.org) id 640b by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 12 Aug 2014 15:39:59 +0000 From: Tijl Coosemans Date: Tue, 12 Aug 2014 15:39:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364713 - in head/devel/gdb: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53ea354f.640b.6b9c8e@svn.freebsd.org> X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 12 Aug 2014 15:39:59 -0000 Author: tijl Date: Tue Aug 12 15:39:58 2014 New Revision: 364713 URL: http://svnweb.freebsd.org/changeset/ports/364713 QAT: https://qat.redports.org/buildarchive/r364713/ Log: Fix symbol addresses in threads PR: 192608 Submitted by: luca.pizzamiglio@gmail.com (maintainer) Modified: head/devel/gdb/Makefile head/devel/gdb/files/fbsd-threads.c Modified: head/devel/gdb/Makefile ============================================================================== --- head/devel/gdb/Makefile Tue Aug 12 15:29:37 2014 (r364712) +++ head/devel/gdb/Makefile Tue Aug 12 15:39:58 2014 (r364713) @@ -3,6 +3,7 @@ PORTNAME= gdb PORTVERSION= 7.8 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GNU Modified: head/devel/gdb/files/fbsd-threads.c ============================================================================== --- head/devel/gdb/files/fbsd-threads.c Tue Aug 12 15:29:37 2014 (r364712) +++ head/devel/gdb/files/fbsd-threads.c Tue Aug 12 15:39:58 2014 (r364713) @@ -1502,14 +1502,14 @@ ps_err_e ps_pglobal_lookup (struct ps_prochandle *ph, const char *obj, const char *name, psaddr_t *sym_addr) { - struct minimal_symbol *ms; + struct bound_minimal_symbol ms; CORE_ADDR addr; - ms = lookup_minimal_symbol (name, NULL, NULL).minsym; - if (ms == NULL) + ms = lookup_minimal_symbol (name, NULL, NULL); + if (!ms.minsym) return PS_NOSYM; - *sym_addr = ms->mginfo.value.address; + *sym_addr = BMSYMBOL_VALUE_ADDRESS (ms); return PS_OK; }