Lines Matching refs:files
217 static struct file_entry *files; variable
545 if (! files[last_used].dir in get_filenum()
546 && filename_cmp (filename, files[last_used].filename) == 0) in get_filenum()
548 if (files[last_used].dir in get_filenum()
549 && filename_ncmp (filename, dirs[files[last_used].dir], in get_filenum()
553 files[last_used].filename) == 0) in get_filenum()
598 if (files[i].dir == dir in get_filenum()
599 && files[i].filename in get_filenum()
600 && filename_cmp (file, files[i].filename) == 0) in get_filenum()
615 files = (struct file_entry *) in get_filenum()
616 xrealloc (files, (i + 32) * sizeof (struct file_entry)); in get_filenum()
618 memset (files + old, 0, (i + 32 - old) * sizeof (struct file_entry)); in get_filenum()
621 files[i].filename = num ? file : xstrdup (file); in get_filenum()
622 files[i].dir = dir; in get_filenum()
730 if (num < (int) files_in_use && files[num].filename != 0) in dwarf2_directive_file()
854 if (filenum >= (int) files_in_use || files[filenum].filename == 0) in dwarf2_directive_loc()
869 if (files[filenum].dir) in dwarf2_directive_loc()
871 size_t dir_len = strlen (dirs[files[filenum].dir]); in dwarf2_directive_loc()
872 size_t file_len = strlen (files[filenum].filename); in dwarf2_directive_loc()
875 memcpy (cp, dirs[files[filenum].dir], dir_len); in dwarf2_directive_loc()
877 memcpy (cp + dir_len + 1, files[filenum].filename, file_len); in dwarf2_directive_loc()
882 listing_source_file (files[filenum].filename); in dwarf2_directive_loc()
1848 if (files[i].filename == NULL) in out_file_list()
1852 files[i].filename = ""; in out_file_list()
1856 fullfilename = DWARF2_FILE_NAME (files[i].filename, in out_file_list()
1857 files[i].dir ? dirs [files [i].dir] : ""); in out_file_list()
1862 out_uleb128 (files[i].dir); /* directory number */ in out_file_list()
1864 out_uleb128 (DWARF2_FILE_TIME_NAME (files[i].filename, in out_file_list()
1865 files[i].dir ? dirs [files [i].dir] : "")); in out_file_list()
1867 out_uleb128 (DWARF2_FILE_SIZE_NAME (files[i].filename, in out_file_list()
1868 files[i].dir ? dirs [files [i].dir] : "")); in out_file_list()
1975 if (files[i].filename == NULL) in out_dwarf5_file_list()
1979 files[i].filename = ""; in out_dwarf5_file_list()
1982 fullfilename = DWARF2_FILE_NAME (files[i].filename, in out_dwarf5_file_list()
1983 files[i].dir ? dirs [files [i].dir] : ""); in out_dwarf5_file_list()
1987 out_uleb128 (files[i].dir); /* directory number */ in out_dwarf5_file_list()
2436 if (files[1].dir) in out_debug_info()
2438 dirname = remap_debug_filename (dirs[files[1].dir]); in out_debug_info()
2450 len = strlen (files[1].filename) + 1; in out_debug_info()
2452 memcpy (p, files[1].filename, len); in out_debug_info()