Hi Arun can we use the Fact that function call are 16 byte aligned in ABI format for x86_64 to get the bottom of function call(for a non leaf function).
Top we can get from libunwind (parsing the .eh_frame section containing the unwinding information). Hence we can have Both the boundary of function(like we have when frame pointer are not omitted using both stack pointer and frame pointer) . Thanks Pallav Singh On Thu, Mar 20, 2014 at 3:40 PM, Arun Sharma <[email protected]> wrote: > On Wed, Mar 19, 2014 at 10:57 PM, Pallav Singh <[email protected]> > wrote: > > Hi All , > > > > i have following query regarding lib-unwind stack unwinding, when frame > > pointer are omitted using -O3 optimization using gcc. > > > > How can we get lowest address of stack frame causing segfault using > > libunwind > > See tests/Ltest-bt.c > You can also use the simpler unw_backtrace() if all you're happy with > just a list of IP addresses. > > -Arun >
_______________________________________________ Libunwind-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/libunwind-devel
