forked from Lainports/freebsd-ports
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
32 lines
637 B
Makefile
32 lines
637 B
Makefile
# $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>
|