PR binutils/15026
authorNick Clifton <nickc@redhat.com>
Fri, 18 Jan 2013 13:14:35 +0000 (13:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 18 Jan 2013 13:14:35 +0000 (13:14 +0000)
* addr2line.c (translate_addresses): When pretty printing, print
unknown function names on the same line as unknown symbol names.

binutils/ChangeLog
binutils/addr2line.c

index d5f6e5de0dcdbc55a32871342987b368f2e2e92d..46fb131d192ebbf0a41db2fcd4e16b4cd403e69c 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-18  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/15026
+       * addr2line.c (translate_addresses): When pretty printing, print
+       unknown function names on the same line as unknown symbol names.
+
 2013-01-17  Nickolai Zeldovich  <nickolai@csail.mit.edu>
 
        * objdump.c (dump_target_specific): Fix NULL pointer test.
index 5febaeae629230d9069f9b2c9f05f3dc3b1e5744..b4f604b4b9209f535b3bd70f5fdeaf6d43c80e5a 100644 (file)
@@ -249,7 +249,12 @@ translate_addresses (bfd *abfd, asection *section)
       if (! found)
        {
          if (with_functions)
-           printf ("??\n");
+           {
+             if (pretty_print)
+               printf ("?? ");
+             else
+               printf ("??\n");
+           }
          printf ("??:0\n");
        }
       else