(out_file_list): Assign non-null filename after generating error.
+2003-04-21 Richard Henderson <rth@redhat.com>
+
+ * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
+ (out_file_list): Assign non-null filename after generating error.
+
2003-04-18 Jakub Jelinek <jakub@redhat.com>
* ehopt.c (check_eh_frame): For aug_size == 0
{
for (i = 1; i < files_in_use; ++i)
if (files[i].dir == dir
+ && files[i].filename
&& strcmp (file, files[i].filename) == 0)
{
last_used = i;
if (files[i].filename == NULL)
{
as_bad (_("unassigned file number %ld"), (long) i);
+ /* Prevent a crash later, particularly for file 1. */
+ files[i].filename = "";
continue;
}