PR 12983
authorCary Coutant <ccoutant@google.com>
Tue, 12 Jul 2011 04:47:49 +0000 (04:47 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 12 Jul 2011 04:47:49 +0000 (04:47 +0000)
* binutils/nm.c (display_file): Decompress debug sections when
printing line numbers.

binutils/ChangeLog
binutils/nm.c

index f97e20e91fb9eae0e8e18f8e0ae1c6b22d332caf..18119d8be9c706b4279814f004089bf4c18801f3 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-11  Cary Coutant  <ccoutant@google.com>
+
+       PR 12983
+       * binutils/nm.c (display_file): Decompress debug sections when
+       printing line numbers.
+
 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
            Thomas Schwinge  <thomas@schwinge.name>
 
index 2fc13b4c31993ccca7a6283891b90e3a00bf125e..04067b158130b7cb2caa716e678acd4b6b9c156f 100644 (file)
@@ -1202,6 +1202,10 @@ display_file (char *filename)
       return FALSE;
     }
 
+  /* If printing line numbers, decompress the debug sections.  */
+  if (line_numbers)
+    file->flags |= BFD_DECOMPRESS;
+
   if (bfd_check_format (file, bfd_archive))
     {
       display_archive (file);
This page took 0.028852 seconds and 4 git commands to generate.