From owner-svn-ports-head@freebsd.org Mon Jun 20 08:18:31 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F010A7B7F8; Mon, 20 Jun 2016 08:18:31 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28C1C2D6C; Mon, 20 Jun 2016 08:18:31 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5K8IU93015010; Mon, 20 Jun 2016 08:18:30 GMT (envelope-from olivier@FreeBSD.org) Received: (from olivier@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5K8IUUp015006; Mon, 20 Jun 2016 08:18:30 GMT (envelope-from olivier@FreeBSD.org) Message-Id: <201606200818.u5K8IUUp015006@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivier set sender to olivier@FreeBSD.org using -f From: Olivier Cochard Date: Mon, 20 Jun 2016 08:18:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417144 - in head/sysutils: . bstack X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2016 08:18:31 -0000 Author: olivier Date: Mon Jun 20 08:18:29 2016 New Revision: 417144 URL: https://svnweb.freebsd.org/changeset/ports/417144 Log: New port: sysutils/bstack bstack - gstack for FreeBSD This is a port of gstack, a script build around gdb on RedHat and other Linux distros, to FreeBSD. bstack take a PID as only parameter and print out the back trace of that running process. If the process is multithread, the backtrace of all threads is printed. It works with the last version of GDB WWW: https://github.com/pizzamig/bstack PR: 209398 Submitted by: luca.pizzamiglio@gmail.com Approved by: jadawin (mentor) Differential Revision: https://reviews.freebsd.org/D6899 Added: head/sysutils/bstack/ head/sysutils/bstack/Makefile (contents, props changed) head/sysutils/bstack/distinfo (contents, props changed) head/sysutils/bstack/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Mon Jun 20 08:12:45 2016 (r417143) +++ head/sysutils/Makefile Mon Jun 20 08:18:29 2016 (r417144) @@ -103,6 +103,7 @@ SUBDIR += bsdmoted SUBDIR += bsdploy SUBDIR += bsdstats + SUBDIR += bstack SUBDIR += btsixad SUBDIR += bulk_extractor SUBDIR += burp Added: head/sysutils/bstack/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/bstack/Makefile Mon Jun 20 08:18:29 2016 (r417144) @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= bstack +PORTVERSION= 0.1 +CATEGORIES= sysutils + +MAINTAINER= luca.pizzamiglio@gmail.com +COMMENT= Debug tool that shows the stack trace of a running process + +LICENSE= BSD3CLAUSE + +RUN_DEPENDS= gdb:devel/gdb + +USE_GITHUB= yes +GH_ACCOUNT= pizzamig +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= bin/bstack \ + %%DATADIR%%/gdb_bstack + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|;' ${WRKSRC}/bstack + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bstack \ + ${STAGEDIR}${PREFIX}/bin/bstack + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/gdb_bstack \ + ${STAGEDIR}${DATADIR}/gdb_bstack + +.include Added: head/sysutils/bstack/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/bstack/distinfo Mon Jun 20 08:18:29 2016 (r417144) @@ -0,0 +1,3 @@ +TIMESTAMP = 1466409420 +SHA256 (pizzamig-bstack-0.1_GH0.tar.gz) = 358ab23ba0ce99260a3239797bdc5fc10cf14bce00ec7b3ff1ab2f1fbe8ffccd +SIZE (pizzamig-bstack-0.1_GH0.tar.gz) = 1868 Added: head/sysutils/bstack/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/bstack/pkg-descr Mon Jun 20 08:18:29 2016 (r417144) @@ -0,0 +1,12 @@ +bstack - gstack for FreeBSD + +This is a port of gstack, a script build around gdb on RedHat and other +Linux distros, to FreeBSD. + +bstack take a PID as only parameter and print out the back trace of that +running process. If the process is multithread, the backtrace of all +threads is printed. + +It works with the last version of GDB + +WWW: https://github.com/pizzamig/bstack