summaryrefslogtreecommitdiffstats
path: root/tools/debugscripts
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2003-11-04 06:38:37 +0000
committergreen <green@FreeBSD.org>2003-11-04 06:38:37 +0000
commit1e0155945805abe02759fe05959372f6244b0886 (patch)
tree9931ea3e242e2b9b563d5324882b0d3f55f0f17a /tools/debugscripts
parent954c37da29a058e192c3150dc180202754811993 (diff)
downloadFreeBSD-src-1e0155945805abe02759fe05959372f6244b0886.zip
FreeBSD-src-1e0155945805abe02759fe05959372f6244b0886.tar.gz
Add a "-f" flag for asf(8) which performs a search to find the each module
no matter where in the directory structure it may be. Use this and the "-k" flag in the generated gdbinit files so that the "getsyms" function in gdb requires no user intervention to run and will find every module if they're in the kernel build's module directory. This is still quite useful for cases where gdb knows that the path for some modules is /boot/kernel and others are in the object directory for /usr/src/sys/$ARCH/compile/kernel. Approved by: grog
Diffstat (limited to 'tools/debugscripts')
-rw-r--r--tools/debugscripts/dot.gdbinit5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/debugscripts/dot.gdbinit b/tools/debugscripts/dot.gdbinit
index cd4dad7..35bcd70 100644
--- a/tools/debugscripts/dot.gdbinit
+++ b/tools/debugscripts/dot.gdbinit
@@ -16,11 +16,8 @@ end
# Get symbols from klds. This is a little fiddly, but very fast.
define getsyms
-kldstat
-echo Select the list above with the mouse, paste into the screen\n
-echo and then press ^D. Yes, this is annoying.\n
# This should be the path of the real modules directory.
-shell asf MODPATH
+shell asf -f -k MODPATH
source .asf
end
OpenPOWER on IntegriCloud