2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Feb 2005 22:12:12 +0000 (22:12 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Feb 2005 22:12:12 +0000 (22:12 +0000)
* readelf.c (display_debug_ranges): Print out offset for end of
list.

binutils/ChangeLog
binutils/readelf.c

index 08675d4..56e3581 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (display_debug_ranges): Print out offset for end of
+       list.
+
 2005-02-23  Alan Modra  <amodra@bigpond.net.au>
 
        * dlltool.c: Warning fixes.
index 75be6c4..ecf0133 100644 (file)
@@ -9831,7 +9831,10 @@ display_debug_ranges (Elf_Internal_Shdr *section,
              start += pointer_size;
 
              if (begin == 0 && end == 0)
-               break;
+               {
+                 printf (_("    %8.8lx <End of list>\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 (_("  <End of list>\n"), stdout);
        }
     }
   putchar ('\n');