Exemplo n.º 1
0
 def drawText(self,x,y,text,color):
     debugger.Error("e")
     theight=0
     for line in text:
         #separate asm from comment
         asmline=line.split("||")[0]
         commentline=line.split("||")[1]
         debugger.Error("asm: %s\ncomment: %s" % (asmline,commentline))
         (theight,twidth)=debugger.draw_text(self.handler,x,y+self.texth,asmline,ImmDrawColors[color])
         (theight,twidth2)=debugger.draw_text(self.handler,x+twidth,y+self.texth,commentline,ImmDrawColors["Red"])
         twidth+=twidth2
         if twidth > self.textw:
             self.textw=twidth
         self.texth=self.texth+theight
     return None
Exemplo n.º 2
0
 def runTimeout(self, regs):
     debugger.Error("Your hook doesnt seem to have runTimeout() defined")
     return