Beispiel #1
0
    def notify(self, event, trace):
        """
        Breakpoints may also extend and implement "notify" which will be
        called whenever they are hit.  If you want to continue the ability
        for this breakpoint to have bpcode, you must call this method from
        your override.
        """
        if self.bpcode != None:
            cobj = Breakpoint.bpcodeobj.get(self.id, None)
            if cobj == None:
                fname = "BP:%d (0x%.8x)" % (self.id, self.address)
                cobj = compile(self.bpcode, fname, "exec")
                Breakpoint.bpcodeobj[self.id] = cobj

            d = vtrace.VtraceExpressionLocals(trace)
            d['bp'] = self
            exec(cobj, None, d)
Beispiel #2
0
 def tools_python(self, *args):
     import vwidget.pydialog as vw_pydialog
     l = vtrace.VtraceExpressionLocals(vdb.VdbTrace(self.db))
     p = vw_pydialog.PyDialog(l)
     p.show()
 def getExpressionLocals(self):
     r = vtrace.VtraceExpressionLocals(self.trace)
     r["db"] = self
     return r