Lines Matching refs:dir

213   unsigned int dir;  member
541 unsigned int i, dir; in get_filenum() local
545 if (! files[last_used].dir in get_filenum()
548 if (files[last_used].dir in get_filenum()
549 && filename_ncmp (filename, dirs[files[last_used].dir], in get_filenum()
568 dir = 0; in get_filenum()
574 for (dir = 1; dir < dirs_in_use; ++dir) in get_filenum()
575 if (filename_ncmp (filename, dirs[dir], dir_len) == 0 in get_filenum()
576 && dirs[dir][dir_len] == '\0') in get_filenum()
579 if (dir >= dirs_in_use) in get_filenum()
581 if (dir >= dirs_allocated) in get_filenum()
583 dirs_allocated = dir + 32; in get_filenum()
585 xrealloc (dirs, (dir + 32) * sizeof (const char *)); in get_filenum()
588 dirs[dir] = (char *) xmalloc (dir_len + 1); in get_filenum()
589 memcpy (dirs[dir], filename, dir_len); in get_filenum()
590 dirs[dir][dir_len] = '\0'; in get_filenum()
591 dirs_in_use = dir + 1; in get_filenum()
598 if (files[i].dir == dir in get_filenum()
622 files[i].dir = dir; in get_filenum()
869 if (files[filenum].dir) in dwarf2_directive_loc()
871 size_t dir_len = strlen (dirs[files[filenum].dir]); in dwarf2_directive_loc()
875 memcpy (cp, dirs[files[filenum].dir], dir_len); in dwarf2_directive_loc()
1829 const char *dir; in out_file_list() local
1836 dir = remap_debug_filename (dirs[i]); in out_file_list()
1837 size = strlen (dir) + 1; in out_file_list()
1839 memcpy (cp, dir, size); 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()
1865 files[i].dir ? dirs [files [i].dir] : "")); in out_file_list()
1868 files[i].dir ? dirs [files [i].dir] : "")); in out_file_list()
1939 const char *dir; in out_dwarf5_file_list() local
1957 dir = remap_debug_filename (dirs[i]); in out_dwarf5_file_list()
1958 strp = add_to_string_table (&debug_line_str_table, dir); 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()