Home | History | Annotate | Download | only in bfd

Lines Matching defs:cache

293       /* No cached one, attempt to read, and cache what we read.  */
2124 bfd_sym_from_r_symndx (struct sym_cache *cache,
2130 if (cache->abfd != abfd || cache->indx[ent] != r_symndx)
2138 &cache->sym[ent], esym, &eshndx) == NULL)
2141 if (cache->abfd != abfd)
2143 memset (cache->indx, -1, sizeof (cache->indx));
2144 cache->abfd = abfd;
2146 cache->indx[ent] = r_symndx;
2149 return &cache->sym[ent];
7672 } *cache;
7677 cache = elf_tdata (abfd)->elf_find_function_cache;
7678 if (cache == NULL)
7680 cache = bfd_zalloc (abfd, sizeof (*cache));
7681 elf_tdata (abfd)->elf_find_function_cache = cache;
7682 if (cache == NULL)
7685 if (cache->last_section != section
7686 || cache->func == NULL
7687 || offset < cache->func->value
7688 || offset >= cache->func->value + cache->func_size)
7707 cache->filename = NULL;
7708 cache->func = NULL;
7709 cache->func_size = 0;
7710 cache->last_section = section;
7731 && size > cache->func_size)))
7733 cache->func = sym;
7734 cache->func_size = size;
7735 cache->filename = NULL;
7740 cache->filename = bfd_asymbol_name (file);
7747 if (cache->func == NULL)
7751 *filename_ptr = cache->filename;
7753 *functionname_ptr = bfd_asymbol_name (cache->func);