Re: Howto build kernel in debug mode



If you have a kernel w/ kgdb support, than this would be one with a
'unoffical' patch applied. Is this certain? If not, trying to get
along with 'printk' and/or CONFIG_DEBUG_LL is probably easier.

Okay,
but HOW do I enable building the kernel with debug option ?
something like -O0 ? Where ? In makefiles or in menuconfig options ?
TIA

I've found the answer in .config

CONFIG_DEBUG_INFO=y


bye
.



Relevant Pages

  • [RFC] New kernel-message logging API
    ... Backwards compatibility with printk(), syslog, etc. ... way the whole kernel can be converted to a new interface in one go. ... const char *format; ...
    (Linux-Kernel)
  • Re: Documentation of kernel messages (Summary)
    ... suggested solutions for documentation / translation of kernel messages ... the messages should _be_ documentation. ... Use printk format string as message identifier ...
    (Linux-Kernel)
  • Re: noisy edac
    ... > into the kernel. ... > offer the user two options: either printk() or be silent. ... looking in the logs it allows all of the errors to be detected and harvested. ...
    (Linux-Kernel)
  • Re: [RFC/PATCH] Documentation of kernel messages
    ... I was more modest, proposing that we ... We could generate the hash using the format string of the printk. ... exactly one kernel and the message catalog belongs therefore to exactly ... the translations could be managed by anyone outside of the normal/ ...
    (Linux-Kernel)
  • Re: noisy edac
    ... > to be printed in case of error, too (see Intel Chipset Specifications) ... the kernel should not be silent when errors are ... either printk() or be silent. ...
    (Linux-Kernel)