• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/dtrace-118.1/tools/ctfconvert/

Lines Matching +defs:match +defs:type

65 		name++; // Lop off omnipresent underscore to match DWARF convention
110 name++; // Lop off omnipresent underscore to match DWARF convention
250 * A fuzzy match is where we have a local symbol matching the name of a
251 * global type description. This is common when a mapfile is used for a
254 * A weak fuzzy match is when a weak symbol was resolved and matched to
255 * a global type description.
258 matching_iidesc(iidesc_t *iidesc, iidesc_match_t *match)
260 if (streq(iidesc->ii_name, match->iim_name) == 0)
266 if (match->iim_bind == STB_GLOBAL) {
267 match->iim_ret = iidesc;
269 } else if (match->iim_fuzzy && match->iim_ret == NULL) {
270 match->iim_ret = iidesc;
271 /* continue to look for strong match */
277 if (match->iim_bind == STB_LOCAL &&
278 match->iim_file != NULL &&
279 streq(iidesc->ii_owner, match->iim_file)) {
280 match->iim_ret = iidesc;
289 find_iidesc(tdata_t *td, iidesc_match_t *match)
291 match->iim_ret = NULL;
292 iter_iidescs_by_name(td, match->iim_name,
293 (int (*)())matching_iidesc, match);
294 return (match->iim_ret);
305 * - have the same type (function, object)
318 * reasonable match.
348 uchar_t type;
353 type = GELF_ST_TYPE(sym.st_info);
355 if (type == STT_FILE)
358 if (GELF_ST_TYPE(weak->st_info) != type ||
395 * When we've found the underlying symbol's type description
396 * for a weak symbol, we need to copy it and rename it to match
405 uchar_t type = GELF_ST_TYPE(sym->st_info);
407 switch (type) {
423 * with a type description if possible, and sorting them into functions
436 iidesc_match_t match;
438 match.iim_fuzzy = fuzzymatch;
439 match.iim_file = NULL;
486 match.iim_name = (char *)strdata->d_buf + sym.st_name;
487 match.iim_bind = GELF_ST_BIND(sym.st_info);
491 match.iim_file = match.iim_name;
505 if (ignore_symbol(&sym, match.iim_name))
508 iidesc = find_iidesc(td, &match);
517 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata,
527 debug(3, "Weak symbol %s resolved to %s\n", match.iim_name,
534 iidesc, match.iim_name, match.iim_file);
555 match.iim_name = (char *)strdata->d_buf + sym.st_name;
556 match.iim_bind = GELF_ST_BIND(sym.st_info);
560 match.iim_file = match.iim_name;
574 if (ignore_symbol(&sym, match.iim_name))
577 iidesc = find_iidesc(td, &match);
586 if (ignore_symbol(&sym, match.iim_name))
611 * highest type index, and change the label indicies to be no higher