summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2021-05-07 11:13:49 -0400
committerRick Farina <zerochaos@gentoo.org>2021-05-07 11:14:01 -0400
commit5d8e83dfd92ca0dc966183ed0b4a3b86e126d7fc (patch)
tree62bbae72c3fbaab830071693e67a5d8c61e12937 /net-wireless
parentdev-lang/php: bump to v8.0.6 (diff)
downloadgentoo-5d8e83dfd92ca0dc966183ed0b4a3b86e126d7fc.tar.gz
gentoo-5d8e83dfd92ca0dc966183ed0b4a3b86e126d7fc.tar.bz2
gentoo-5d8e83dfd92ca0dc966183ed0b4a3b86e126d7fc.zip
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>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/kismet/files/gdb14
-rw-r--r--net-wireless/kismet/files/kismet-gdb1
-rw-r--r--net-wireless/kismet/kismet-9999.ebuild4
3 files changed, 19 insertions, 0 deletions
diff --git a/net-wireless/kismet/files/gdb b/net-wireless/kismet/files/gdb
new file mode 100644
index 000000000000..de8dea91fa02
--- /dev/null
+++ b/net-wireless/kismet/files/gdb
@@ -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
diff --git a/net-wireless/kismet/files/kismet-gdb b/net-wireless/kismet/files/kismet-gdb
new file mode 100644
index 000000000000..bf57dcba8b86
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-gdb
@@ -0,0 +1 @@
+gdb kismet --command=/usr/share/kismet/gdb
diff --git a/net-wireless/kismet/kismet-9999.ebuild b/net-wireless/kismet/kismet-9999.ebuild
index cf499ef55e4f..d75e2d985726 100644
--- a/net-wireless/kismet/kismet-9999.ebuild
+++ b/net-wireless/kismet/kismet-9999.ebuild
@@ -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