Date: Tue, 12 Aug 2014 15:39:59 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364713 - in head/devel/gdb: . files Message-ID: <53ea354f.640b.6b9c8e@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53ea354f.640b.6b9c8e>