Lines Matching defs:sym
62 X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line,
72 Elf_Sym *sym;
78 sym = (Elf_Sym *)symtab->start;
79 while ((char *)sym < symtab->end) {
80 if (sym->st_name != 0 &&
81 !strcmp(symtab->private + sym->st_name, symbol))
82 return ((c_db_sym_t)sym);
83 sym++;
94 Elf_Sym *sym, *match;
107 for (sym = (Elf_Sym*)symtab->start; (char*)sym < symtab->end; sym++) {
108 if (sym->st_name == 0)
110 if (off < sym->st_value)
112 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT &&
113 ELF_ST_TYPE(sym->st_info) != STT_FUNC &&
114 ELF_ST_TYPE(sym->st_info) != STT_NOTYPE)
116 if ((off - sym->st_value) > diff)
118 if ((off - sym->st_value) < diff) {
119 diff = off - sym->st_value;
120 match = sym;
123 match = sym;
125 ELF_ST_BIND(sym->st_info) != STB_LOCAL)
126 match = sym;
130 ELF_ST_TYPE(sym->st_info) == STT_FUNC &&
131 ELF_ST_BIND(sym->st_info) != STB_LOCAL)
134 ELF_ST_BIND(sym->st_info) != STB_LOCAL)
144 X_db_sym_numargs(db_symtab_t *symtab, c_db_sym_t sym, int *nargp,
151 X_db_symbol_values(db_symtab_t *symtab, c_db_sym_t sym, const char **namep,
157 linker_ddb_symbol_values((c_linker_sym_t)sym, &lval);
165 ((const Elf_Sym *)sym)->st_name;
167 *valp = (db_expr_t)((const Elf_Sym *)sym)->st_value;