+2017-04-23 Alan Modra <amodra@gmail.com>
+
+ PR 21408
+ * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
+ file_table.
+
2017-04-21 Nick Clifton <nickc@redhat.com>
PR binutils/21378
}
/* Print the Compilation Unit's name and a header. */
- if (directory_table == NULL)
- {
- printf (_("CU: %s:\n"), file_table[0].name);
- printf (_("File name Line number Starting address\n"));
- }
+ if (file_table == NULL)
+ ;
+ else if (directory_table == NULL)
+ printf (_("CU: %s:\n"), file_table[0].name);
else
{
unsigned int ix = file_table[0].directory_index;
printf (_("CU: %s/%s:\n"), directory, file_table[0].name);
else
printf ("%s:\n", file_table[0].name);
-
- printf (_("File name Line number Starting address\n"));
}
+ printf (_("File name Line number Starting address\n"));
saved_linfo = linfo;
}