Date: Sun, 25 Jul 2004 10:59:14 -0700 From: Alfred Perlstein <alfred@freebsd.org> To: Marcel Moolenaar <marcel@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: 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 Message-ID: <20040725175914.GX95729@elvis.mu.org> In-Reply-To: <200407250529.i6P5TFag021812@repoman.freebsd.org> References: <200407250529.i6P5TFag021812@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Marcel Moolenaar <marcel@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@mu.org cell: 408-480-4684
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040725175914.GX95729>