Bug 15416

Summary: addr2line is unable to find line numbers
Product: Base System Reporter: mikko <mikko>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description mikko 1999-12-11 14:40:01 UTC
 The addr2line program never manages to figure out line numbers.
 Could be an indication of more fundamental problems in the port
 of GNU binutils.

How-To-Repeat: 
 % cat > xxx.c
 /* Some initial blank lines... */

 int main()
 {
	return 0;
 }
 ^D 
 % cc -g xxx.c
 % nm a.out | grep main
 080483c0 T main
 % addr2line 080483c0
 /tmp/xxx.c:0

Note: On Linux (RH 6.1, also version 2.9.1 of binutils) this results
in "/tmp/xxx.c:5".
Comment 1 njl freebsd_committer freebsd_triage 2002-11-23 21:29:10 UTC
State Changed
From-To: open->closed

Closed at submitter's request (msg below) 
Submitter's new email address is: mbsd@pacbell.net 

-------- 
As the originator of that PR (the e-mail address in the PR is now 
defunct), I'd say close it.  Nowadays the problem only seems to affect 
the "main" symbol, other functions are resolved as expected.