libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] Help : Lowest address of stack frame causing segfa


From: Pallav Singh
Subject: Re: [Libunwind-devel] Help : Lowest address of stack frame causing segfault
Date: Thu, 20 Mar 2014 23:18:55 +0530

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 <address@hidden> wrote:
On Wed, Mar 19, 2014 at 10:57 PM, Pallav  Singh <address@hidden> 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


reply via email to

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