[lkml]   [2000]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kernel compiled with frame pointer
On Mon, 25 Sep 2000 01:11:08 +0530 (IST), 
Sushil <> wrote:
>I agree. Sitting in the front of desktop I can see if the source files are
>getting compiled with or without -fomit-frame-pointer. But, while writing
>a function in a kernel source file, I want to know whether the caller of
>this function was compiled with or without -fomit-frame-pointer because
>this will affect the location of return address to it on the stack.

If the caller is not in the same source as the callee then there is no
way of telling if the caller was compiled with frame pointers or not.
I came to the conclusion that relying on frame pointers for backtrace
on ix86 was not realistic, there were too many places where the frame
pointers were not reliable, even if the kernel was compiled with frame

I suggest you have a look at the latest kdb patch and all the effort it
has to go through to get a decent backtrace. It is *ugly* but it

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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