cvs commit: src/gnu/usr.bin/gdb/kgdb Makefile kgdb.1 kgdb.h
kthr.c main.c trgt.c trgt_alpha.c trgt_amd64.c trgt_i386.c
trgt_ia64.c trgt_sparc64.c
Alfred Perlstein
alfred at freebsd.org
Sun Jul 25 10:59:15 PDT 2004
* Marcel Moolenaar <marcel at FreeBSD.org> [040724 22:29] wrote:
> marcel 2004-07-25 05:29:15 UTC
>
> FreeBSD src repository
>
> Added files:
> gnu/usr.bin/gdb/kgdb Makefile kgdb.1 kgdb.h kthr.c main.c
> trgt.c trgt_alpha.c trgt_amd64.c
> trgt_i386.c trgt_ia64.c trgt_sparc64.c
> Log:
> Add the beginnings of kernel debugging support. the kgdb(1) tool
> is basicly a shell on top of libgdb that knows about kernel threads,
> kernel modules and kvm(3). As the word "beginnings" implies, not
> all of the features have been implemented yet. The tool is useful
> and I'd like feedback on the taken route.
>
> The simplest way to debug a kernel core file is:
> kgdb -n 0
>
> This opens /var/crash/vmcore.0 with the corresponding kernel in
> the object directory (kernel.debug is used if it exists).
>
> Typical things that need to be added are:
> o Auto loading of kernel modules,
Haev you seen grog's scripts that do this? They are in the
4.x source tree under src/sys/modules/vinum/.gdb* (i think)
> o Handling of trapframes so that backtraces can be taken across
> them,
> o Some fancy commands to extract useful information out of a core
> file,
> o Various (probably many) other things.
Cool thank you!
--
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684
More information about the cvs-all
mailing list