* dwarf.c (display_debug_lines): Print the offset of each line
authorJim Blandy <jimb@codesourcery.com>
Wed, 10 Oct 2007 19:43:43 +0000 (19:43 +0000)
committerJim Blandy <jimb@codesourcery.com>
Wed, 10 Oct 2007 19:43:43 +0000 (19:43 +0000)
number program header.

binutils/ChangeLog
binutils/dwarf.c

index 0c5f72314f002ac401bb8066f702079fe71c6ad3..810e9d2362085877c9a02585bd64e9eaae4406f2 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-10  Jim Blandy  <jimb@codesourcery.com>
+
+       * dwarf.c (display_debug_lines): Print the offset of each line
+       number program header.
+
 2007-10-09  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR binutils/4476
index 9cfb158aa30c95cabb2113a66e77fbb10e2518a3..53e612073c87ab91b0870385c2d6ad8a6b43c93b 100644 (file)
@@ -1821,11 +1821,13 @@ display_debug_lines (struct dwarf_section *section, void *file)
       unsigned char *standard_opcodes;
       unsigned char *end_of_sequence;
       unsigned char *hdrptr;
+      unsigned long hdroff;
       int initial_length_size;
       int offset_size;
       int i;
 
       hdrptr = data;
+      hdroff = hdrptr - start;
 
       /* Check the length of the block.  */
       info.li_length = byte_get (hdrptr, 4);
@@ -1878,6 +1880,7 @@ display_debug_lines (struct dwarf_section *section, void *file)
       info.li_line_base <<= 24;
       info.li_line_base >>= 24;
 
+      printf (_("  Offset:                      0x%lx\n"), hdroff);
       printf (_("  Length:                      %ld\n"), info.li_length);
       printf (_("  DWARF Version:               %d\n"), info.li_version);
       printf (_("  Prologue Length:             %d\n"), info.li_prologue_length);
This page took 0.029954 seconds and 4 git commands to generate.