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