The idea is simply to find the nearest symbol before the desired IP.
The cast to Elf_W(Addr) is there such that negative values are treated
as large (unsigned) positive values, because we do not want to pick up
symbols after the desired IP.

What is the min_dist value you're seeing on PPC64 for the correct symbol?

  --david

On 8/14/07, Jose Flavio <[EMAIL PROTECTED]> wrote:
> I was looking in elfxx
> and I'm having problem with min_dist.
>
> I can't understand whats the use of min_dist, and why its calculated
> this way:
>
> if ((Elf_W (Addr)) (ip - val) < min_dist)
> {
>                       min_dist = (Elf_W (Addr)) (ip - val);
> ...
>
> I can only find the functions in ppc64 if I always consider the min_dist
> = 0.
>
> Could some one help me?
>
> Thanks a lot,
> Flávio
>
>
> --
> Jose Flavio Aguilar Paulino
> ([EMAIL PROTECTED])
>
> Toolchain Team
> LTC, Linux Technology Center
> IBM Brazil
>
>
>
> _______________________________________________
> Libunwind-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/libunwind-devel
>


-- 
Mosberger Consulting LLC, http://www.mosberger-consulting.com/


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

Reply via email to