• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/cxxfilt-11/cxxfilt/bfd/

Lines Matching defs:stash

61   /* Linked starting from stash->lastUnit.  */
135 then attached into the 'stash' at 'stash->lastUnit'. */
138 alloc_dwarf1_unit (struct dwarf1_debug* stash)
142 struct dwarf1_unit* x = bfd_zalloc (stash->abfd, amt);
143 x->prev = stash->lastUnit;
144 stash->lastUnit = x;
153 alloc_dwarf1_func (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
157 struct dwarf1_func* x = bfd_zalloc (stash->abfd, amt);
258 parse_line_table (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
263 if (stash->line_section == 0)
268 msec = bfd_get_section_by_name (stash->abfd, ".line");
273 stash->line_section = bfd_alloc (stash->abfd, size);
275 if (! stash->line_section)
278 if (! bfd_get_section_contents (stash->abfd, msec, stash->line_section,
281 stash->line_section = 0;
285 stash->line_section_end = stash->line_section + size;
288 xptr = stash->line_section + aUnit->stmt_list_offset;
289 if (xptr < stash->line_section_end)
297 tblend = bfd_get_32 (stash->abfd, (bfd_byte *) xptr) + xptr;
301 base = bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
310 aUnit->linenumber_table = bfd_alloc (stash->abfd, amt);
316 = bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
324 = base + bfd_get_32 (stash->abfd, (bfd_byte *) xptr);
338 parse_functions_in_unit (struct dwarf1_debug* stash, struct dwarf1_unit* aUnit)
344 eachDie < stash->debug_section_end;
349 if (! parse_die (stash->abfd, &eachDieInfo, eachDie,
350 stash->debug_section_end))
358 struct dwarf1_func* aFunc = alloc_dwarf1_func (stash,aUnit);
367 eachDie = stash->debug_section + eachDieInfo.sibling;
379 dwarf1_unit_find_nearest_line (struct dwarf1_debug* stash,
398 if (! parse_line_table (stash, aUnit))
404 if (! parse_functions_in_unit (stash, aUnit))
450 struct dwarf1_debug *stash = elf_tdata (abfd)->dwarf1_find_line_info;
461 if (! stash)
466 stash = elf_tdata (abfd)->dwarf1_find_line_info
469 if (! stash)
474 /* No dwarf1 info. Note that at this point the stash
480 stash->debug_section = bfd_alloc (abfd, size);
482 if (! stash->debug_section)
485 if (! bfd_get_section_contents (abfd, msec, stash->debug_section,
488 stash->debug_section = 0;
492 stash->debug_section_end = stash->debug_section + size;
493 stash->currentDie = stash->debug_section;
494 stash->abfd = abfd;
498 or that an error occured while setting up the stash. */
500 if (! stash->debug_section)
505 for (eachUnit = stash->lastUnit; eachUnit; eachUnit = eachUnit->prev)
507 return dwarf1_unit_find_nearest_line (stash, eachUnit, addr,
512 while (stash->currentDie < stash->debug_section_end)
516 if (! parse_die (stash->abfd, &aDieInfo, stash->currentDie,
517 stash->debug_section_end))
523 = alloc_dwarf1_unit (stash);
534 && stash->currentDie + aDieInfo.length
535 < stash->debug_section_end
536 && stash->currentDie + aDieInfo.length
537 != stash->debug_section + aDieInfo.sibling)
538 aUnit->first_child = stash->currentDie + aDieInfo.length;
543 return dwarf1_unit_find_nearest_line (stash, aUnit, addr,
550 stash->currentDie = stash->debug_section + aDieInfo.sibling;
552 stash->currentDie += aDieInfo.length;