Kernel debugging, 5.4-RELEASE

dpk dpk at dpk.net
Wed Aug 3 02:00:05 GMT 2005


On Tue, 2 Aug 2005, Frank McConnell wrote:

> I've been using plain bog-standard /usr/bin/gdb, not out of lack
> of knowledge of kgdb but because I also find that kgdb fails with
> a segmentation fault after connecting.

Ah, OK. That solves part of the problem.

> If I'm getting more stuff out of my backtrace, it is likely because I
> have this in my kernel config:
>
> makeoptions DEBUG="-g"
>
> And likewise, sorry if I come across as being a bit too verbose or
> grumpy.  Guidance is welcome.
>
> -Frank McConnell

I had that option, but one thing I did not do was a "make clean" before
rebuilding with -g. I assumed "make depend" would handle what was
necessary to rebuild any files that could use the -g, and I guess I just
didn't pay close attention to the build process. How embarassing.

gdb now gives a proper backtrace and soon I hope to have some useful data
to submit in a PR.


More information about the freebsd-stable mailing list