Debugging options


Matt Dillon noted that:

makeoptions DEBUG=-g
options DDB
options INVARIANTS
options INVARIANT_SUPPORT

are the only options you need when building with debugging options on.

Posted by     Categories: Goings-on     3 Comments
3 Comments on Debugging options

Closed

  1. PCN says:

    “…are the only debugging options you need when building”

    Correction, they are NOT required when building, but he feels that they are the only options generally required to get useful debugging information from the kernel (as in using more is kind of overkill).

  2. Justin C. Sherrill says:

    GOod point – I will clarify the sentence.

  3. Poor Clueless Newbie says:

    This is one example of the very few things that I dislike about BSD.

    Reading through LINT, I notice that “options INVARIANTS” requires “options INVARIANT_SUPPORT” to function, and that “options INVARIANT_SUPPORT” does nothing without “options INVARIANTS”.

    Why is this (and others like it) not one option? “FFS” and FFS_ROOT” also comes to mind.

    Perhaps I’m just missing something that would be obvious to someone who isn’t a poor clueless newbie…