libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] Get function name by IP


From: Arun Sharma
Subject: Re: [Libunwind-devel] Get function name by IP
Date: Sat, 7 Jun 2014 18:20:44 -0700

On Sat, Jun 7, 2014 at 7:12 AM, Dmitri Shubin <address@hidden> wrote:
> Hello,
>
> I need to resolve function name by its IP, but found only
> unw_get_proc_name() which needs cursor and unw_get_proc_info_by_ip() which
> doesn't return function name.
> After checking source I found src/mi/Gget_proc_name.c:get_proc_name() static
> function which does exactly what I need.
> Is it ok to export it as unw_get_proc_name_by_ip() ?
>
> I attached patch that does exactly that and it seems to work fine for me
> (local unwinding, linux, x86_64).

http://lists.nongnu.org/archive/html/libunwind-devel/2012-01/msg00002.html

It's not clear that libunwind is the best library to do this.

 -Arun



reply via email to

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