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.

Of course. But when your kernel was compiling, did you notice the
`gcc` options as the files flew by? `-fomit-frame-pointer` is standard
on i386 and perhaps other arch's. It means what it says, and AFAIK
the kernel doesn't have frame-pointers available for debugging.

But when you say "process", that sounds like userland. Then it
would depend on whether you compiled with `-fomit-frame-pointer`
or not.

-- Robert
-
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.048 / U:4.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site