(_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 for
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index 9c5e7b8d173652d88bfae7943f584885300e3209..1cdd46156bba02b0bc5f19dad5fa927d8860c559 100644 (file)
@@ -1907,6 +1907,13 @@ _bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
              length = read_8_bytes (abfd, stash->info_ptr + 4);
              stash->info_ptr += 8;
            }
+         else if (length == 0)
+           {
+             /* Handle (non-standard) 64-bit DWARF2 formats.  */
+             offset_size = 8;
+             length = read_4_bytes (abfd, stash->info_ptr + 4);
+             stash->info_ptr += 4;
+           }
        }
       else
        length = read_8_bytes (abfd, stash->info_ptr);
This page took 0.022893 seconds and 4 git commands to generate.