kernel compiled with frame pointer

From: Sushil (sushil@veritas.com)
Date: Sat Sep 23 2000 - 05:32:26 EDT

  • Next message: Daniel Phillips: "Re: [DOC] Debugging early kernel hangs"

    Hi,
        While writing kernel code what is the correct way to find out if the
    kernel is being compiled with frame pointer?

    Is the following code correct?

    #ifdef CONFIG_FRAME_POINTER
            code assuming frame pointer
    #else
            code assuming no frame pointer

    The top level Makefile that comes with the standard kernels (the ones
    which can be downloaded from kernel.org etc.) adds -fomit-frame-pointer to
    CFLAGS by default and it does not have something like

    ifdef CONFIG_FRAME_POINTER
    CFLAGS += -fomit-frame-pointer
    endif

    Is CONFIG_FRAME_POINTER a part of some external patch?
    If yes, then is there a way to find the above in the standard
    kernels?

    What about CONFIG_KDB_FRAMEPTR? Is it correct to use this in a standard
    kernel to find whether the kernel is being compiled with frame pointer?

    Thanks and Regards,
    Sushil.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 15:24:39 EDT