Lines Matching defs:symbol
73 #define MINSYMWIDTH 22 /* Minimum width of symbol portion of line */
76 * Given a symbol+offset as returned by dis_tgt_lookup(), print an appropriately
77 * formatted symbol, based on the offset and current setttings.
80 getsymname(uint64_t addr, const char *symbol, off_t offset, char *buf,
83 if (symbol == NULL || g_numeric) {
90 symbol = dis_demangle(symbol);
93 (void) snprintf(buf, buflen, "%s", symbol);
95 (void) snprintf(buf, buflen, "%s+0%o", symbol, offset);
97 (void) snprintf(buf, buflen, "%s+0x%x", symbol, offset);
128 const char *symbol;
149 symbol = NULL;
175 * next valid symbol in the section.
201 * based on the maximum width that the current symbol can be.
204 last_symbol = symbol;
205 symbol = dis_tgt_lookup(tgt, addr, &symoffset, 1, &symsize,
207 if (symbol == NULL) {
208 symbol = dis_find_section(tgt, addr, &symoffset);
212 if (symbol != last_symbol)
213 getsymname(addr, symbol, symsize, symbuf,
217 getsymname(addr, symbol, symoffset, symbuf, sizeof (symbuf));
223 if (!g_quiet && symoffset == 0 && symbol != NULL && isfunc)
224 (void) printf("%s()\n", symbol);
268 * libdisasm wrapper around symbol lookup. Invoke the target-specific lookup
276 const char *symbol;
281 * If NULL symbol is returned, getsymname takes care of
282 * printing appropriate address in buf instead of symbol.
284 symbol = dis_tgt_lookup(db->db_tgt, addr, &offset, 0, &size, NULL);
287 getsymname(addr, symbol, offset, buf, buflen);
294 if (symbol == NULL)
589 * result in garbage, as symbol lookups on unrelocated