Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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