savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] Fwd: Issue : Stack unwinding and Frame pointer on


From: Pallav Singh
Subject: [savannah-help-public] Fwd: Issue : Stack unwinding and Frame pointer on Optimized Code in Linux x86_64.
Date: Thu, 28 Nov 2013 10:38:02 +0530

Hi All,

 

Problem Statement : We have stack unwinding code that relies on frame pointers. It not working in Optimized Code in Linux x86_64.

 

Reason :  Optimized gcc code (at any opt. level > 0) doesn't contain frame pointers on Linux x86_64.(Unless the architecture requires it for debugging on x86_64, like x86)

 

I tried using, gcc building functions, but they also fails to get frame pointers, when code is compiled in optimized mode.

 

http://gcc.gnu.org/onlinedocs/gcc/Return-Address.html

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html

 

Can we use libelf  and write frame-pointer traversal(downwards) routine on executable from given function? 

 

Do we need to include libdwarf and libunwind to traverse frame pointers.

 

Please provide pointers regarding the same. If you are not right person working on such issues, then please provide reference so that I can reach out to them regarding the same.

 

Thanks

Pallav Singh

 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]