From owner-svn-src-head@FreeBSD.ORG Sat Aug 10 07:39:15 2013 Return-Path: Delivered-To: svn-src-head@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 ESMTP id DA4AC96; Sat, 10 Aug 2013 07:39:15 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C7DBE2D0C; Sat, 10 Aug 2013 07:39:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7A7dFRP067952; Sat, 10 Aug 2013 07:39:15 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7A7dFWT067951; Sat, 10 Aug 2013 07:39:15 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201308100739.r7A7dFWT067951@svn.freebsd.org> From: Rui Paulo Date: Sat, 10 Aug 2013 07:39:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254177 - head/lib/libproc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2013 07:39:15 -0000 Author: rpaulo Date: Sat Aug 10 07:39:15 2013 New Revision: 254177 URL: http://svnweb.freebsd.org/changeset/base/254177 Log: Fix the return value when we found a symbol in .dynstr. This nasty bug was preventing a lot of symbol lookups in dtruss -s, for example. Modified: head/lib/libproc/proc_sym.c Modified: head/lib/libproc/proc_sym.c ============================================================================== --- head/lib/libproc/proc_sym.c Sat Aug 10 06:48:20 2013 (r254176) +++ head/lib/libproc/proc_sym.c Sat Aug 10 07:39:15 2013 (r254177) @@ -299,6 +299,7 @@ proc_addr2sym(struct proc_handle *p, uin * the function. */ symcopy->st_value = rsym; + error = 0; goto out; } }