bug-gnu-utils
[Top][All Lists]
Advanced

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

BFD line lookup failure on alpha-tru64 5.1


From: Chris Chambreau
Subject: BFD line lookup failure on alpha-tru64 5.1
Date: Fri, 24 Jan 2003 16:08:52 -0800

Hi,

I'm working on a profiling tool using libbfd for stack traces on an 
alpha-tru64 5.1 system.

Using binutils-2.13.2.1, bfd_find_nearest_line is consistently failing on 
this platform where it typically succeeds on other platforms.

More specifically, it looks like in bfd/ecofflink.c, function lookup_line, 
each base_addr value in the tab array is 0.  When I loop through the tab 
elements, pdr_hold falls through with a null value and overwrites a 
previously-correct best_pdr value.

I changed line 2111 of ecofflink.c from

  if (!best_pdr || min_dist < best_dist)
to
  if (!best_pdr || (min_dist < best_dist && pdr_hold))

which is at least resulting in bfd_find_nearest_line succeeding with 
reasonable results.

Regards,

-Chris





reply via email to

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