bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/15026] New: addr2line pretty-print for unknown symbols


From: dhekir at gmail dot com
Subject: [Bug binutils/15026] New: addr2line pretty-print for unknown symbols
Date: Thu, 17 Jan 2013 14:37:37 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15026

             Bug #: 15026
           Summary: addr2line pretty-print for unknown symbols
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


addr2line, when used with options -f and -p combined, does not output a single
line for unknown symbols. Instead, it outputs two lines:

??
??:0

Which is in contrast with the output of other symbols (in a single line).

The man page does not precisely define this behavior:

"If the -p option is used then the output for each input address is displayed
on one, possibly quite long, line.  If -p is not used then the output is broken
up into multiple lines, based on the paragraphs above."

"If the file name or function name can not be determined, addr2line will print
two question marks in their place.  If the line number can not be determined,
addr2line will print 0."

However, this is quite annoying when producing scripts, since the unknown
symbol is the only exception that requires a particular processing. It seems it
would be more coherent to only output a single line containing "??:0" in this
case.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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