diff options
author | Cary Coutant <ccoutant@google.com> | 2011-07-12 04:47:49 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-07-12 04:47:49 +0000 |
commit | b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681 (patch) | |
tree | b7c8baea5fd79639c0660f949af16205c61f0932 /binutils | |
parent | d48b3b9acc0e095ea96a82c1ae56545f8302e31a (diff) | |
download | gdb-b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681.zip gdb-b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681.tar.gz gdb-b76e66d3ba4d17fb1a71e0c83d8c3d59a16c2681.tar.bz2 |
PR 12983
* binutils/nm.c (display_file): Decompress debug sections when
printing line numbers.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/nm.c | 4 |
2 files changed, 10 insertions, 0 deletions
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 <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> 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); |