https://sourceware.org/bugzilla/show_bug.cgi?id=31734

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed by:
...
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index c5ccc50dae7..8125c64e1b6 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -7969,6 +7969,7 @@ display_debug_str_offsets (struct dwarf_section *section,
          length = section->size;
          curr   = section->start;
          entries_end = end;
+         debug_str_offsets_hdr_len = 0;

          printf (_("    Length: %#" PRIx64 "\n"), length);
          printf (_("       Index   Offset [String]\n"));
...
with which we get:
...
Contents of the .debug_str_offsets.dwo section (loaded from
/home/vries/gdb/a-hello.dwo):

    Length: 0xb14
       Index   Offset [String]
           0 00000000  __FLT16_NORM_MAX__
6.55040000000000000000000000000000000e+4F16
           1 0000003f  _SIZE_T_
           2 00000049  __SIG_ATOMIC_MAX__ 0x7fffffff
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to