Re: kernel compiled with frame pointer

From: Sushil (sushil@veritas.com)
Date: Sat Sep 23 2000 - 16:36:47 EST


I am trying to get the call trace of a process by tracing the return
addresses on the stack. To get the correct location of the return address
I need to know whether the kernel is being compiled with frame pointer
because this will affect the offset of return address on the stack.

Regards,
Sushil.

On Sat, 23 Sep 2000, Russell King wrote:

> Sushil writes:
> > #ifdef CONFIG_FRAME_POINTER
> > code assuming frame pointer
> > #else
> > code assuming no frame pointer
> You want #endif here.
>
> > Is CONFIG_FRAME_POINTER a part of some external patch?
>
> I think you've been looking at some of the ARM code. Yes, we do manipulate
> the CFLAGS (have a look in arch/arm/Makefile) depending on the state of
> CONFIG_FRAME_POINTER. This is currently an ARM only feature though.
>
> It would be helpful if you can give some hints about what you're trying to
> do.
> _____
> |_____| ------------------------------------------------- ---+---+-
> | | Russell King rmk@arm.linux.org.uk --- ---
> | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
> | +-+-+ --- -+-
> / | THE developer of ARM Linux |+| /|\
> / | | | --- |
> +-+-+ ------------------------------------------------- /\\\ |
>

-
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 30 2000 - 21:00:11 EST