• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/gdb/bfd/

Lines Matching refs:stash

62   /* Linked starting from stash->lastUnit.  */
136 then attached into the 'stash' at 'stash->lastUnit'. */
139 alloc_dwarf1_unit (struct dwarf1_debug* stash)
143 struct dwarf1_unit* x = bfd_zalloc (stash->abfd, amt);
144 x->prev = stash->lastUnit;
145 stash->lastUnit = x;
154 alloc_dwarf1_func (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
158 struct dwarf1_func* x = bfd_zalloc (stash->abfd, amt);
259 parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
264 if (stash->line_section == 0)
269 msec = bfd_get_section_by_name (stash->abfd, ".line");
274 stash->line_section = bfd_alloc (stash->abfd, size);
276 if (! stash->line_section)
279 if (! bfd_get_section_contents (stash->abfd, msec, stash->line_section,
282 stash->line_section = 0;
286 stash->line_section_end = stash->line_section + size;
289 xptr = stash->line_section + aUnit->stmt_list_offset;
290 if (xptr < stash->line_section_end)
298 tblend = bfd_get_32 (stash->abfd, (bfd_byte *) xptr) + xptr;
302 base = bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
311 aUnit->linenumber_table = bfd_alloc (stash->abfd, amt);
317 = bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
325 = base + bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
339 parse_functions_in_unit (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
345 eachDie < stash->debug_section_end;
350 if (! parse_die (stash->abfd, &eachDieInfo, eachDie,
351 stash->debug_section_end))
359 struct dwarf1_func* aFunc = alloc_dwarf1_func (stash,aUnit);
368 eachDie = stash->debug_section + eachDieInfo.sibling;
380 dwarf1_unit_find_nearest_line (struct dwarf1_debug* stash,
399 if (! parse_line_table (stash, aUnit))
405 if (! parse_functions_in_unit (stash, aUnit))
451 struct dwarf1_debug *stash = elf_tdata (abfd)->dwarf1_find_line_info;
462 if (! stash)
467 stash = elf_tdata (abfd)->dwarf1_find_line_info
470 if (! stash)
475 /* No dwarf1 info. Note that at this point the stash
481 stash->debug_section = bfd_alloc (abfd, size);
483 if (! stash->debug_section)
486 if (! bfd_get_section_contents (abfd, msec, stash->debug_section,
489 stash->debug_section = 0;
493 stash->debug_section_end = stash->debug_section + size;
494 stash->currentDie = stash->debug_section;
495 stash->abfd = abfd;
499 or that an error occured while setting up the stash. */
501 if (! stash->debug_section)
506 for (eachUnit = stash->lastUnit; eachUnit; eachUnit = eachUnit->prev)
508 return dwarf1_unit_find_nearest_line (stash, eachUnit, addr,
513 while (stash->currentDie < stash->debug_section_end)
517 if (! parse_die (stash->abfd, &aDieInfo, stash->currentDie,
518 stash->debug_section_end))
524 = alloc_dwarf1_unit (stash);
535 && stash->currentDie + aDieInfo.length
536 < stash->debug_section_end
537 && stash->currentDie + aDieInfo.length
538 != stash->debug_section + aDieInfo.sibling)
539 aUnit->first_child = stash->currentDie + aDieInfo.length;
544 return dwarf1_unit_find_nearest_line (stash, aUnit, addr,
551 stash->currentDie = stash->debug_section + aDieInfo.sibling;
553 stash->currentDie += aDieInfo.length;