libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] retrieving symbols


From: Arun Sharma
Subject: Re: [Libunwind-devel] retrieving symbols
Date: Thu, 12 Jan 2012 08:37:55 -0800

On Thu, Jan 12, 2012 at 12:58 AM, Harald Servat <address@hidden> wrote:

>  I've read Arun's answer in your other mail. However, I see a drawback
> there in our specific situation. In our case, the binary that generates
> the final tracefile is not the analyzed application but a secondary
> application. Thus we don't have the chance to use unw_set_reg because
> the process image is not the same as the one it was being executed. In
> fact, the analyzed application binary is received as a parameter and
> passed to bfd_open.

That's a harder problem to solve, especially if you have "randomize
va" sysctl turned on (true for most linux distros). One option would
be to use a core dumper library to dump core (or save /proc/pid/maps)
and then analyze it via libbfd and friends.

 -Arun



reply via email to

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