Lines Matching refs:aUnit
159 alloc_dwarf1_func (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit) in alloc_dwarf1_func() argument
166 x->prev = aUnit->func_list; in alloc_dwarf1_func()
167 aUnit->func_list = x; in alloc_dwarf1_func()
267 parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit) in parse_line_table() argument
292 xptr = stash->line_section + aUnit->stmt_list_offset; in parse_line_table()
310 aUnit->line_count = (tblend - xptr) / 10; in parse_line_table()
313 amt = sizeof (struct linenumber) * aUnit->line_count; in parse_line_table()
314 aUnit->linenumber_table = (struct linenumber *) bfd_alloc (stash->abfd, in parse_line_table()
316 if (!aUnit->linenumber_table) in parse_line_table()
319 for (eachLine = 0; eachLine < aUnit->line_count; eachLine++) in parse_line_table()
322 aUnit->linenumber_table[eachLine].linenumber in parse_line_table()
330 aUnit->linenumber_table[eachLine].addr in parse_line_table()
345 parse_functions_in_unit (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit) in parse_functions_in_unit() argument
349 if (aUnit->first_child) in parse_functions_in_unit()
350 for (eachDie = aUnit->first_child; in parse_functions_in_unit()
365 struct dwarf1_func* aFunc = alloc_dwarf1_func (stash,aUnit); in parse_functions_in_unit()
389 struct dwarf1_unit* aUnit, in dwarf1_unit_find_nearest_line() argument
398 if (aUnit->low_pc <= addr && addr < aUnit->high_pc) in dwarf1_unit_find_nearest_line()
400 if (aUnit->has_stmt_list) in dwarf1_unit_find_nearest_line()
405 if (! aUnit->linenumber_table) in dwarf1_unit_find_nearest_line()
407 if (! parse_line_table (stash, aUnit)) in dwarf1_unit_find_nearest_line()
411 if (! aUnit->func_list) in dwarf1_unit_find_nearest_line()
413 if (! parse_functions_in_unit (stash, aUnit)) in dwarf1_unit_find_nearest_line()
417 for (i = 0; i < aUnit->line_count; i++) in dwarf1_unit_find_nearest_line()
419 if (aUnit->linenumber_table[i].addr <= addr in dwarf1_unit_find_nearest_line()
420 && addr < aUnit->linenumber_table[i+1].addr) in dwarf1_unit_find_nearest_line()
422 *filename_ptr = aUnit->name; in dwarf1_unit_find_nearest_line()
423 *linenumber_ptr = aUnit->linenumber_table[i].linenumber; in dwarf1_unit_find_nearest_line()
429 for (eachFunc = aUnit->func_list; in dwarf1_unit_find_nearest_line()
527 struct dwarf1_unit* aUnit in _bfd_dwarf1_find_nearest_line() local
529 if (!aUnit) in _bfd_dwarf1_find_nearest_line()
532 aUnit->name = aDieInfo.name; in _bfd_dwarf1_find_nearest_line()
533 aUnit->low_pc = aDieInfo.low_pc; in _bfd_dwarf1_find_nearest_line()
534 aUnit->high_pc = aDieInfo.high_pc; in _bfd_dwarf1_find_nearest_line()
535 aUnit->has_stmt_list = aDieInfo.has_stmt_list; in _bfd_dwarf1_find_nearest_line()
536 aUnit->stmt_list_offset = aDieInfo.stmt_list_offset; in _bfd_dwarf1_find_nearest_line()
545 aUnit->first_child = stash->currentDie + aDieInfo.length; in _bfd_dwarf1_find_nearest_line()
547 aUnit->first_child = 0; in _bfd_dwarf1_find_nearest_line()
549 if (aUnit->low_pc <= addr && addr < aUnit->high_pc) in _bfd_dwarf1_find_nearest_line()
550 return dwarf1_unit_find_nearest_line (stash, aUnit, addr, in _bfd_dwarf1_find_nearest_line()