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

binutils/ChangeLog
binutils/readelf.c

index 72ed1fe9d9d0b2553eb3ea37effa25d091ae6876..12837ea5376351aee8c2bbec665ff944d64a0eec 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (display_debug_loc): Print out offset for end of
+       list.
+
 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
 
        * Makefile.am (TOOL_PROGS): Add objdump.
index 24dbacf2a026f330bf4dba5f480f9f4e0ae115e0..e607e0f72d36716409341aa34b74811edf54bb01 100644 (file)
@@ -9490,7 +9490,10 @@ display_debug_loc (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)
@@ -9524,8 +9527,6 @@ display_debug_loc (Elf_Internal_Shdr *section,
 
              start += length;
            }
-
-         fputs (_("  <End of list>\n"), stdout);
        }
     }
   return 1;
This page took 0.031291 seconds and 4 git commands to generate.