* binutils/nm.c (display_file): Decompress debug sections when
	printing line numbers.
This commit is contained in:
Cary Coutant 2011-07-12 04:47:49 +00:00
parent d48b3b9acc
commit b76e66d3ba
2 changed files with 10 additions and 0 deletions

View 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>

View 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);