| Summary: | addr2line is unable to find line numbers | ||
|---|---|---|---|
| Product: | Base System | Reporter: | mikko <mikko> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
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. |
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".