Lines Matching refs:symbol
71 #define MINSYMWIDTH 22 /* Minimum width of symbol portion of line */
74 * Given a symbol+offset as returned by dis_tgt_lookup(), print an appropriately
75 * formatted symbol, based on the offset and current setttings.
78 getsymname(uint64_t addr, const char *symbol, off_t offset, char *buf,
81 if (symbol == NULL || g_numeric) {
88 symbol = dis_demangle(symbol);
91 (void) snprintf(buf, buflen, "%s", symbol);
93 (void) snprintf(buf, buflen, "%s+0%o", symbol, offset);
95 (void) snprintf(buf, buflen, "%s+0x%x", symbol, offset);
110 const char *symbol;
136 * We then find the next valid symbol in the section,
168 * based on the maximum width that the current symbol can be.
171 symbol = dis_tgt_lookup(tgt, addr, &symoffset, 1, &symsize,
173 /* Get the maximum length for this symbol */
174 getsymname(addr, symbol, symsize, symbuf, sizeof (symbuf));
177 getsymname(addr, symbol, symoffset, symbuf, sizeof (symbuf));
183 if (!g_quiet && symoffset == 0 && symbol != NULL && isfunc)
184 (void) printf("%s()\n", symbol);
228 * libdisasm wrapper around symbol lookup. Invoke the target-specific lookup
236 const char *symbol;
241 * If NULL symbol is returned, getsymname takes care of
242 * printing appropriate address in buf instead of symbol.
244 symbol = dis_tgt_lookup(db->db_tgt, addr, &offset, 0, &size, NULL);
247 getsymname(addr, symbol, offset, buf, buflen);
254 if (symbol == NULL)
519 * result in garbage, as symbol lookups on unrelocated