lkml.org 
[lkml]   [2000]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel compiled with frame pointer

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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.041 / U:0.752 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site