def main(codebufs, f): while 1: line = f.readline() if not line: break for addr in xam.lineaddresses(line): sym = xam.symbols.get(addr) if sym: print '0x%x\tis\t' % addr, xam.symtext(sym, addr) break
def symhtml(self, sym, addr, inbuf=None, lineaddr=None): text = xam.symtext(sym, addr, inbuf, lineaddr) if isinstance(sym, xam.CodeBuf): if addr == sym.addr: name = '' else: name = '#0x%x' % addr text = "<a href='/0x%x%s'>%s</a>" % (sym.addr, name, text) if addr == lineaddr: text += "\t<a href='/traces0x%x'>traces</a>" % addr return text