Debug kernel panic with gdb?

Mulyadi Santosa mulyadi.santosa at
Fri Mar 25 15:19:05 EDT 2011

On Fri, Mar 25, 2011 at 23:13, Arvid Brodin <arvid.brodin at> wrote:
> To reply to my own email, the problem probably has to do with the fact that the
> kernel is built with optimization. Modifying KBUILD_CFLAGS in the Makefile to
> specify -O1 made things a lot better (although you still cannot rely completely
> on the line number reported). Unfortunately, the kernel won't build with -O0.

make sure frame pointer is included too


Mulyadi Santosa
Freelance Linux trainer and consultant


More information about the Kernelnewbies mailing list