Lines Matching defs:table

95   /* Pointer to the symbol table.  */
142 /* The abbrev hash table. */
151 /* TRUE if there is a line number table associated with this comp. unit. */
154 /* The offset into .debug_line of the line number table. */
397 /* Lookup an abbrev_info structure in the abbrev hash table. */
422 in a hash table. */
520 table is reached. */
674 /* Source line information table routines. */
723 add_line_info (struct line_info_table *table,
731 struct line_info* info = bfd_alloc (table->abfd, amt);
742 Note: table->lcl_head is used to head an *actual* or *possible*
744 headed by table->last_line
749 if (!table->last_line
750 || address >= table->last_line->address)
753 info->prev_line = table->last_line;
754 table->last_line = info;
757 if (!table->lcl_head)
758 table->lcl_head = info;
761 else if (!table->lcl_head->prev_line
762 && table->lcl_head->address > address)
767 table->lcl_head->prev_line = info;
770 else if (table->lcl_head->prev_line
771 && table->lcl_head->address > address
772 && address >= table->lcl_head->prev_line->address)
776 info->prev_line = table->lcl_head->prev_line;
777 table->lcl_head->prev_line = info;
784 struct line_info* li2 = table->last_line; /* always non-NULL */
795 table->lcl_head = li2;
806 info->filename = bfd_alloc (table->abfd, strlen (filename) + 1);
814 /* Extract a fully qualified filename from a line info table.
819 concat_filename (struct line_info_table *table, unsigned int file)
823 if (file - 1 >= table->num_files)
830 filename = table->files[file - 1].name;
834 char* dirname = (table->files[file - 1].dir
835 ? table->dirs[table->files[file - 1].dir - 1]
836 : table->comp_dir);
903 struct line_info_table* table;
943 table = bfd_alloc (abfd, amt);
944 table->abfd = abfd;
945 table->comp_dir = unit->comp_dir;
947 table->num_files = 0;
948 table->files = NULL;
950 table->num_dirs = 0;
951 table->dirs = NULL;
953 table->files = NULL;
954 table->last_line = NULL;
955 table->lcl_head = NULL;
1005 /* Read directory table. */
1010 if ((table->num_dirs % DIR_ALLOC_CHUNK) == 0)
1012 amt = table->num_dirs + DIR_ALLOC_CHUNK;
1014 table->dirs = bfd_realloc (table->dirs, amt);
1015 if (! table->dirs)
1019 table->dirs[table->num_dirs++] = cur_dir;
1024 /* Read file name table. */
1029 if ((table->num_files % FILE_ALLOC_CHUNK) == 0)
1031 amt = table->num_files + FILE_ALLOC_CHUNK;
1033 table->files = bfd_realloc (table->files, amt);
1034 if (! table->files)
1038 table->files[table->num_files].name = cur_file;
1039 table->files[table->num_files].dir =
1042 table->files[table->num_files].time =
1045 table->files[table->num_files].size =
1048 table->num_files++;
1058 char * filename = table->num_files ? concat_filename (table, 1) : NULL;
1072 /* Decode the table. */
1086 add_line_info (table, address, filename, line, column, 0);
1105 add_line_info (table, address, filename, line, column,
1120 if ((table->num_files % FILE_ALLOC_CHUNK) == 0)
1122 amt = table->num_files + FILE_ALLOC_CHUNK;
1124 table->files = bfd_realloc (table->files, amt);
1125 if (! table->files)
1128 table->files[table->num_files].name = cur_file;
1129 table->files[table->num_files].dir =
1132 table->files[table->num_files].time =
1135 table->files[table->num_files].size =
1138 table->num_files++;
1147 add_line_info (table, address, filename, line, column, 0);
1173 filename = concat_filename (table, file);
1212 return table;
1220 lookup_address_in_line_info_table (struct line_info_table *table,
1226 /* Note: table->last_line should be a descendingly sorted list. */
1227 struct line_info* next_line = table->last_line;
1292 /* Function table functions. */
1297 lookup_address_in_function_table (struct funcinfo *table,
1304 for (each_func = table;
1322 to the function table. */
1482 /* Read the abbrevs for this compilation unit into a table. */
1520 partial symbol table. */
1716 offset of the abbreviation table, should both be 4-byte values.
1850 table to see if a compilation unit contains the given