Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Kernel debugger Date: 21 Jul 1996 12:55:02 GMT Organization: Private BSD site, Dresden Lines: 34 Message-ID: <4st9b6$66a@uriah.heep.sax.de> References: <4sjuil$215@news.cs.tu-berlin.de> <4sl6u8$53o@uriah.heep.sax.de> <4ssjqk$nl6@news.cs.tu-berlin.de> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E loewis@cs.tu-berlin.de (Martin v.Loewis) wrote: > Thanks for the pointer, it solved my problem. Now that I'm getting into > ddb, I found that it usually displays function names - except when I'm > in a loadable module. Is that my fault or ddb's? Neither. ;) It's the fault of nobody handling symbol loading for LKMs. This is unfortunately a little more complicated than the static symbol loading from the bootstrap, since you have to recompute the addresses relative to the load point. > Also, is there work going on to improve DDB? Greg Lehey sometimes asked about a wishlist, but i don't think he has started any additional work. There are even more basic things missing like a commandline editor (not necessary such a bloated one as in /bin/sh). You can also mix DDB and gdb -k. The latter knows about all data structures, typedefs and enums if you compile the kernel with -g. It knows about source files if you start it from the kernel compile directory. If you run it with -w, you can also manipulate kernel data structures. Maybe you can even set breakpoints, but the will drop you into DDB on the console. Be careful however, a full -g kernel is around 8 MB, and if you don't run `strip -d' on it after installing, all the symbols will eat up as much physical memory at the next system boot (even though DDB cannot use them). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)