From 35515c66de79029bd4ccfdc9f35f32ebe643f358 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 25 Feb 2005 22:12:12 +0000 Subject: 2005-02-25 H.J. Lu * readelf.c (display_debug_ranges): Print out offset for end of list. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 08675d4..56e3581 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2005-02-25 H.J. Lu + + * readelf.c (display_debug_ranges): Print out offset for end of + list. + 2005-02-23 Alan Modra * dlltool.c: Warning fixes. diff --git a/binutils/readelf.c b/binutils/readelf.c index 75be6c4..ecf0133 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9831,7 +9831,10 @@ display_debug_ranges (Elf_Internal_Shdr *section, start += pointer_size; if (begin == 0 && end == 0) - break; + { + printf (_(" %8.8lx \n"), offset); + break; + } /* Check base address specifiers. */ if (begin == -1UL && end != -1UL) @@ -9852,7 +9855,6 @@ display_debug_ranges (Elf_Internal_Shdr *section, putchar ('\n'); } - fputs (_(" \n"), stdout); } } putchar ('\n'); -- cgit v1.1