net-wireless/kismet: add gdb scripts

live debugging can be a pain, so add some helpers which follow
upstream's instructions for gdb usage

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
This commit is contained in:
Rick Farina
2021-05-07 11:14:01 -04:00
parent b902e59c31
commit 5d8e83dfd9
3 changed files with 19 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
set pagination off
handle SIGPIPE nostop noprint pass
handle SIGINT nostop noprint pass
set logging file kismet-gdb.txt
set logging on
run --debug --no-ncurses
catch throw
bt
info threads
thread apply all bt full
quit
end
+1
View File
@@ -0,0 +1 @@
gdb kismet --command=/usr/share/kismet/gdb
+4
View File
@@ -140,6 +140,10 @@ src_install() {
insinto /usr/share/${PN}
doins Makefile.inc
if [ "${PV}" = "9999" ];then
doins "${FILESDIR}"/gdb
dobin "${FILESDIR}"/kismet-gdb
fi
dodoc CHANGELOG README*
newinitd "${FILESDIR}"/${PN}.initd-r3 kismet