aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2015-10-18 09:39:25 -0700
committerPaul Pluzhnikov <ppluzhnikov@google.com>2015-10-18 09:39:25 -0700
commit595712bb07e5db19dde5879bdf1b827abbe90c60 (patch)
tree8ea0c0d16c463fc4267960f6bb637bde3b82b00b /binutils/readelf.c
parent0b002d4885505f557c52febcc0c6c7c45914e814 (diff)
downloadgdb-595712bb07e5db19dde5879bdf1b827abbe90c60.zip
gdb-595712bb07e5db19dde5879bdf1b827abbe90c60.tar.gz
gdb-595712bb07e5db19dde5879bdf1b827abbe90c60.tar.bz2
Fix PR binutils/19147 -- off by one when printing NT_FILE note.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index e8c215d..22cec2c 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -15151,7 +15151,7 @@ print_core_note (Elf_Internal_Note *pnote)
(int) (4 + 2 * addr_size), _("End"),
(int) (4 + 2 * addr_size), _("Page Offset"));
filenames = descdata + count * 3 * addr_size;
- while (--count > 0)
+ while (count-- > 0)
{
bfd_vma start, end, file_ofs;