Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2014 15:42:33 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276144 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201412231542.sBNFgXLK095292@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Dec 23 15:42:33 2014
New Revision: 276144
URL: https://svnweb.freebsd.org/changeset/base/276144

Log:
  We can stop iterating once we've found the DOF section.
  
  Submitted by:	Fedor Indutny <fedor@indutny.com>

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c	Tue Dec 23 15:40:57 2014	(r276143)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c	Tue Dec 23 15:42:33 2014	(r276144)
@@ -171,6 +171,7 @@ dtrace_dof_init(void)
 			if (s != NULL && strcmp(s, ".SUNW_dof") == 0) {
 				dofdata = elf_getdata(scn, NULL);
 				dof = dofdata->d_buf;
+				break;
 			}
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412231542.sBNFgXLK095292>