Lines Matching defs:aUnit

94   /* Linked starting from aUnit->func_list.  */
150 attached into 'aUnit' at 'aUnit->func_list'. */
153 alloc_dwarf1_func (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
158 x->prev = aUnit->func_list;
159 aUnit->func_list = x;
253 /* Parse a dwarf1 line number table for 'aUnit->stmt_list_offset'
254 into 'aUnit->linenumber_table'. Return FALSE if an error
258 parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
288 xptr = stash->line_section + aUnit->stmt_list_offset;
306 aUnit->line_count = (tblend - xptr) / 10;
309 amt = sizeof (struct linenumber) * aUnit->line_count;
310 aUnit->linenumber_table = bfd_alloc (stash->abfd, amt);
312 for (eachLine = 0; eachLine < aUnit->line_count; eachLine++)
315 aUnit->linenumber_table[eachLine].linenumber
323 aUnit->linenumber_table[eachLine].addr
332 /* Parse each function die in a compilation unit 'aUnit'.
333 The first child die of 'aUnit' should be in 'aUnit->first_child',
334 the result is placed in 'aUnit->func_list'.
338 parse_functions_in_unit (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
342 if (aUnit->first_child)
343 for (eachDie = aUnit->first_child;
358 struct dwarf1_func* aFunc = alloc_dwarf1_func (stash,aUnit);
375 /* Find the nearest line to 'addr' in 'aUnit'.
380 struct dwarf1_unit* aUnit,
389 if (aUnit->low_pc <= addr && addr < aUnit->high_pc)
391 if (aUnit->has_stmt_list)
396 if (! aUnit->linenumber_table)
398 if (! parse_line_table (stash, aUnit))
402 if (! aUnit->func_list)
404 if (! parse_functions_in_unit (stash, aUnit))
408 for (i = 0; i < aUnit->line_count; i++)
410 if (aUnit->linenumber_table[i].addr <= addr
411 && addr < aUnit->linenumber_table[i+1].addr)
413 *filename_ptr = aUnit->name;
414 *linenumber_ptr = aUnit->linenumber_table[i].linenumber;
420 for (eachFunc = aUnit->func_list;
522 struct dwarf1_unit* aUnit
525 aUnit->name = aDieInfo.name;
526 aUnit->low_pc = aDieInfo.low_pc;
527 aUnit->high_pc = aDieInfo.high_pc;
528 aUnit->has_stmt_list = aDieInfo.has_stmt_list;
529 aUnit->stmt_list_offset = aDieInfo.stmt_list_offset;
538 aUnit->first_child = stash->currentDie + aDieInfo.length;
540 aUnit->first_child = 0;
542 if (aUnit->low_pc <= addr && addr < aUnit->high_pc)
543 return dwarf1_unit_find_nearest_line (stash, aUnit, addr,