From afdc68c42fba40d895abfb17e67c9cfe4463e511 Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Tue, 4 Nov 2003 06:38:37 +0000 Subject: 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 --- tools/debugscripts/dot.gdbinit | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools/debugscripts') 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 -- cgit v1.3