From: Cary Coutant Date: Tue, 12 Jul 2011 04:47:49 +0000 (+0000) Subject: PR 12983 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681;p=binutils-gdb.git PR 12983 * binutils/nm.c (display_file): Decompress debug sections when printing line numbers. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f97e20e91fb..18119d8be9c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2011-07-11 Cary Coutant + + PR 12983 + * binutils/nm.c (display_file): Decompress debug sections when + printing line numbers. + 2011-07-03 Samuel Thibault Thomas Schwinge diff --git a/binutils/nm.c b/binutils/nm.c index 2fc13b4c319..04067b15813 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -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);