Date: Sun, 25 Jul 2004 05:29:15 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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: <200407250529.i6P5TFag021812@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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, 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. Revision Changes Path 1.1 +14 -0 src/gnu/usr.bin/gdb/kgdb/Makefile (new) 1.1 +50 -0 src/gnu/usr.bin/gdb/kgdb/kgdb.1 (new) 1.1 +55 -0 src/gnu/usr.bin/gdb/kgdb/kgdb.h (new) 1.1 +141 -0 src/gnu/usr.bin/gdb/kgdb/kthr.c (new) 1.1 +288 -0 src/gnu/usr.bin/gdb/kgdb/main.c (new) 1.1 +112 -0 src/gnu/usr.bin/gdb/kgdb/trgt.c (new) 1.1 +73 -0 src/gnu/usr.bin/gdb/kgdb/trgt_alpha.c (new) 1.1 +73 -0 src/gnu/usr.bin/gdb/kgdb/trgt_amd64.c (new) 1.1 +69 -0 src/gnu/usr.bin/gdb/kgdb/trgt_i386.c (new) 1.1 +133 -0 src/gnu/usr.bin/gdb/kgdb/trgt_ia64.c (new) 1.1 +81 -0 src/gnu/usr.bin/gdb/kgdb/trgt_sparc64.c (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407250529.i6P5TFag021812>