From owner-svn-src-stable@FreeBSD.ORG Tue Mar 24 00:46:44 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C327E1065678; Tue, 24 Mar 2009 00:46:44 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AD5958FC0A; Tue, 24 Mar 2009 00:46:44 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2O0kia9026726; Tue, 24 Mar 2009 00:46:44 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2O0ki43026725; Tue, 24 Mar 2009 00:46:44 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <200903240046.n2O0ki43026725@svn.freebsd.org> From: "David E. O'Brien" Date: Tue, 24 Mar 2009 00:46:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190352 - stable/7/usr.bin/gprof X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 00:46:46 -0000 Author: obrien Date: Tue Mar 24 00:46:44 2009 New Revision: 190352 URL: http://svn.freebsd.org/changeset/base/190352 Log: MFC: r187116: If running with "-K" really do not information about symbols from the a.out argument. Modified: stable/7/usr.bin/gprof/gprof.c Modified: stable/7/usr.bin/gprof/gprof.c ============================================================================== --- stable/7/usr.bin/gprof/gprof.c Tue Mar 24 00:44:30 2009 (r190351) +++ stable/7/usr.bin/gprof/gprof.c Tue Mar 24 00:46:44 2009 (r190352) @@ -165,7 +165,7 @@ main(argc, argv) * get information from the executable file. */ if ((Kflag && kernel_getnfile(a_outname, &defaultEs) == -1) || - (elf_getnfile(a_outname, &defaultEs) == -1 && + (!Kflag && elf_getnfile(a_outname, &defaultEs) == -1 && aout_getnfile(a_outname, &defaultEs) == -1)) errx(1, "%s: bad format", a_outname); /*