debug kernels + -fomit-frame-pointer == unhappy gdb

Juergen Lock nox at
Thu Aug 16 16:16:16 PDT 2007

Just got reminded of this...

 I noticed some kernel builds use -fomit-frame-pointer by default,
even if you do a debug kernel.  That kinda defeats the purpose
since gdb uses the frame pointer when examining the stack, like,
when doing backtraces, i.e. you lose function calls in backtraces
when the kernel is built like that.

 So, should this be changed?


More information about the freebsd-hackers mailing list