cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c
    Dag-Erling Smørgrav 
    des at des.no
       
    Wed Jan 30 09:02:10 PST 2008
    
    
  
John Baldwin <jhb at FreeBSD.org> writes:
>   Log:
>   Add support for automatically loading symbols for kld's on startup:
>   - Add a new 'kgdb_auto_load_klds()' routine which is invoked during
>     startup that walks the list of linker files and tries to find a matching
>     kld on disk for each non-kernel kld.  If a kld file is found, then it
>     is added as if the 'add-kld' command is invoked.  One change from
>     'add-kld' is that this method attempts to use the 'pathname' from the
>     linker_file structure first to try to load the file.  If that fails
>     it then looks in the kernel directory followed by the directories in
>     the module path.
John, this is awesome.  The issue of how to debug panics in KLDs has
been a PITA for so many years...  There have been attempts to write gdb
macros to automate it, but it's never worked 100% due to limitations in
gdb's macro language.
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the cvs-src
mailing list