freebsd-src/libexec/Makefile
Mark Johnston 2524b7dfb0 crashinfo: Print stack traces for all on-CPU threads
Add a python script which implements the bulk of this functionality.
Over time, this would ideally evolve into a library of python routines
which can be used to inspect kernel data structures and automate some
debugging tasks, similar to jhb's out-of-tree scripts, but written in a
somewhat nicer language and with better integration into the kgdb
command prompt.

Note that kgdb currently won't auto-load scripts in this directory.
This should perhaps change in the future.  It probably also makes more
sense to have a crashinfo.py which provides all the kgdb output that we
want to include in core.txt, rather than having crashinfo.sh pipe in
several commands.

Reviewed by:	avg, imp
Discussed with:	jhb
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33817
2024-01-15 16:36:40 -05:00

125 lines
1.7 KiB
Makefile

.include <src.opts.mk>
.include <bsd.compat.pre.mk>
SUBDIR= ${_atf} \
${_atrun} \
${_blacklistd-helper} \
${_comsat} \
${_dma} \
flua \
getty \
${_hyperv} \
kgdb \
${_mail.local} \
${_makewhatis.local} \
${_mknetid} \
${_phttpget} \
${_pppoed} \
rc \
revnetgroup \
${_rlogind} \
rpc.rquotad \
rpc.rstatd \
rpc.rusersd \
rpc.rwalld \
rpc.sprayd \
${_rshd} \
${_rtld-elf} \
save-entropy \
${_smrsh} \
${_tests} \
${_tftp-proxy} \
ulog-helper \
${_ypxfr}
.if ${MK_AT} != "no"
_atrun= atrun
.endif
.if ${MK_BLACKLIST} != "no"
_blacklistd-helper+= blacklistd-helper
.endif
.if ${MK_BOOTPD} != "no"
SUBDIR+= bootpd
.endif
.if ${MK_FINGER} != "no"
SUBDIR+= fingerd
.endif
.if ${MK_FREEBSD_UPDATE} != "no"
_phttpget= phttpget
.endif
.if ${MK_FTP} != "no"
SUBDIR+= ftpd
.endif
.if ${MK_MAIL} != "no"
_comsat= comsat
.endif
.if ${MK_DMAGENT} != "no"
_dma= dma
.endif
.if ${MK_HYPERV} != "no"
_hyperv+= hyperv
.endif
.if ${MK_NIS} != "no"
_mknetid= mknetid
_ypxfr= ypxfr
.endif
.if ${MK_NETGRAPH} != "no"
_pppoed= pppoed
.endif
.if ${MK_PF} != "no"
_tftp-proxy= tftp-proxy
.endif
.if !defined(NO_PIC) && !defined(NO_RTLD)
_rtld-elf= rtld-elf
.for LIBCOMPAT libcompat in ${_ALL_LIBCOMPATS_libcompats}
SUBDIR.${MK_LIB${LIBCOMPAT}}+= rtld-elf${libcompat}
.endfor
.endif
.if ${MK_RBOOTD} != "no"
SUBDIR+= rbootd
.endif
.if ${MK_SENDMAIL} != "no"
_mail.local= mail.local
_smrsh= smrsh
.endif
.if ${MK_MAN_UTILS} != "no"
_makewhatis.local= makewhatis.local
.endif
.if ${MK_TALK} != "no"
SUBDIR+= talkd
.endif
.if ${MK_TCP_WRAPPERS} != "no"
SUBDIR+= tcpd
.endif
.if ${MK_TFTP} != "no"
SUBDIR+= tftpd
.endif
.if ${MK_TESTS} != "no"
_atf= atf
_tests= tests
.endif
.include <bsd.arch.inc.mk>
.include <bsd.subdir.mk>