summaryrefslogtreecommitdiff
path: root/tools/debugscripts
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2003-11-04 06:38:37 +0000
committerBrian Feldman <green@FreeBSD.org>2003-11-04 06:38:37 +0000
commitafdc68c42fba40d895abfb17e67c9cfe4463e511 (patch)
tree9931ea3e242e2b9b563d5324882b0d3f55f0f17a /tools/debugscripts
parenta93efa3c977ea60e6f45271cfec34fa1d6c628c0 (diff)
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
Notes
svn path=/head/; revision=122033
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 cd4dad766ec1..35bcd70bbea4 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