[Top][All Lists]

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

Re: [Libunwind-devel] Re: Call to strdup breaks heap profilers

From: Anderson Lizardo
Subject: Re: [Libunwind-devel] Re: Call to strdup breaks heap profilers
Date: Tue, 17 Mar 2009 08:11:45 -0400

2009/3/17 Arun Sharma <address@hidden>:
> On Mon, Jul 21, 2008 at 7:24 PM, Daniel Jacobowitz <address@hidden> wrote:
>> On Mon, Jul 21, 2008 at 07:11:51PM -0700, Arun Sharma wrote:
>>> I've temporarily reverted this commit from our copy of libunwind - so it's
>>> not super urgent. But it'd be nice to get a fix in the longer term that
>>> doesn't involve calls to malloc.
>> I've definitely not forgotten about this - I will get it fixed.
> Dan and ARM folks, could you please test if the attached patches work
> for you? You'll probably want to compile with --enable-debug-frame.

In the below snippet:

-  if (found)
-    {
-      *name = strdup (path);
-      return 0;
-    }
+  return ~found;

Did you mean "return !found"  instead of "return ~found"?

Anderson Lizardo
Instituto Nokia de Tecnologia (INdT)
Manaus - Brazil

reply via email to

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