From b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 12 Jul 2011 04:47:49 +0000 Subject: PR 12983 * binutils/nm.c (display_file): Decompress debug sections when printing line numbers. --- binutils/ChangeLog | 6 ++++++ binutils/nm.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f97e20e..18119d8 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 2fc13b4..04067b1 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); -- cgit v1.1