Page MenuHomeFreeBSD

D6899.diff
No OneTemporary

D6899.diff

Index: head/sysutils/Makefile
===================================================================
--- head/sysutils/Makefile
+++ head/sysutils/Makefile
@@ -103,6 +103,7 @@
SUBDIR += bsdmoted
SUBDIR += bsdploy
SUBDIR += bsdstats
+ SUBDIR += bstack
SUBDIR += btsixad
SUBDIR += bulk_extractor
SUBDIR += burp
Index: head/sysutils/bstack/Makefile
===================================================================
--- head/sysutils/bstack/Makefile
+++ head/sysutils/bstack/Makefile
@@ -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 <bsd.port.mk>
Index: head/sysutils/bstack/distinfo
===================================================================
--- head/sysutils/bstack/distinfo
+++ head/sysutils/bstack/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1466409420
+SHA256 (pizzamig-bstack-0.1_GH0.tar.gz) = 358ab23ba0ce99260a3239797bdc5fc10cf14bce00ec7b3ff1ab2f1fbe8ffccd
+SIZE (pizzamig-bstack-0.1_GH0.tar.gz) = 1868
Index: head/sysutils/bstack/pkg-descr
===================================================================
--- head/sysutils/bstack/pkg-descr
+++ head/sysutils/bstack/pkg-descr
@@ -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

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 11, 3:53 AM (18 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23561760
Default Alt Text
D6899.diff (2 KB)

Event Timeline