Lines Matching defs:aUnit

97   /* Linked starting from aUnit->func_list.  */
156 attached into 'aUnit' at 'aUnit->func_list'. */
159 alloc_dwarf1_func (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
166 x->prev = aUnit->func_list;
167 aUnit->func_list = x;
288 /* Parse a dwarf1 line number table for 'aUnit->stmt_list_offset'
289 into 'aUnit->linenumber_table'. Return FALSE if an error
293 parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
318 xptr = stash->line_section + aUnit->stmt_list_offset;
336 aUnit->line_count = (tblend - xptr) / 10;
339 amt = sizeof (struct linenumber) * aUnit->line_count;
340 aUnit->linenumber_table = (struct linenumber *) bfd_alloc (stash->abfd,
342 if (!aUnit->linenumber_table)
345 for (eachLine = 0; eachLine < aUnit->line_count; eachLine++)
349 aUnit->line_count = eachLine;
353 aUnit->linenumber_table[eachLine].linenumber
361 aUnit->linenumber_table[eachLine].addr
370 /* Parse each function die in a compilation unit 'aUnit'.
371 The first child die of 'aUnit' should be in 'aUnit->first_child',
372 the result is placed in 'aUnit->func_list'.
376 parse_functions_in_unit (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
380 if (aUnit->first_child)
381 for (eachDie = aUnit->first_child;
396 struct dwarf1_func* aFunc = alloc_dwarf1_func (stash,aUnit);
415 /* Find the nearest line to 'addr' in 'aUnit'.
420 struct dwarf1_unit* aUnit,
429 if (aUnit->low_pc <= addr && addr < aUnit->high_pc)
431 if (aUnit->has_stmt_list)
436 if (! aUnit->linenumber_table)
438 if (! parse_line_table (stash, aUnit))
442 if (! aUnit->func_list)
444 if (! parse_functions_in_unit (stash, aUnit))
448 for (i = 0; i < aUnit->line_count; i++)
450 if (aUnit->linenumber_table[i].addr <= addr
451 && addr < aUnit->linenumber_table[i+1].addr)
453 *filename_ptr = aUnit->name;
454 *linenumber_ptr = aUnit->linenumber_table[i].linenumber;
460 for (eachFunc = aUnit->func_list;
558 struct dwarf1_unit* aUnit
560 if (!aUnit)
563 aUnit->name = aDieInfo.name;
564 aUnit->low_pc = aDieInfo.low_pc;
565 aUnit->high_pc = aDieInfo.high_pc;
566 aUnit->has_stmt_list = aDieInfo.has_stmt_list;
567 aUnit->stmt_list_offset = aDieInfo.stmt_list_offset;
576 aUnit->first_child = stash->currentDie + aDieInfo.length;
578 aUnit->first_child = 0;
580 if (aUnit->low_pc <= addr && addr < aUnit->high_pc)
581 return dwarf1_unit_find_nearest_line (stash, aUnit, addr,