On Fri, Aug 10, 2012 at 7:03 AM, Martin Milata <[email protected]> wrote:

>
> +      /* Closer symbol was found (possibly truncated). */
> +      if (ret_mdi == 0 || ret_mdi == -UNW_ENOMEM)
> +       {
> +         ret = ret_mdi;
> +       }
> +
> +      munmap (mdi.image, mdi.size);

If the second lookup fails with -UNW_ENOMEM, looks like you propagate
that error up the stack. Why not propagate the best known answer from
the first lookup?

 -Arun

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to