Ejemplo n.º 1
0
 def run(self, args):
     func, filename, lineno, condition = Mcmdbreak.parse_break_cmd(
         self.proc, args)
     if not (func == None and filename == None):
         Mcmdbreak.set_break(self, func, filename, lineno, condition, True,
                             args)
     return
Ejemplo n.º 2
0
 def run(self, args):
     force = True if args[0][-1] == '!' else False
     (func, filename, lineno,
      condition) = Mcmdbreak.parse_break_cmd(self.proc, args)
     if not (func == None and filename == None):
         Mcmdbreak.set_break(self, func, filename, lineno, condition,
                             False, args, force=force)
     return
Ejemplo n.º 3
0
    def run(self, args):
        force = True if args[0][-1] == '!' else False

        (func, filename, lineno,
         condition) = Mcmdbreak.parse_break_cmd(self.proc, args)
        if not (func == None and filename == None):
            Mcmdbreak.set_break(self, func, filename, lineno, condition,
                                False, args, force=force)
        return
Ejemplo n.º 4
0
    def run(self, args):
        force = True if args[0][-1] == "!" else False

        (func, filename, lineno, condition,
         offset) = parse_break_cmd(self.proc, args)
        if not (func == None and filename == None):
            set_break(
                self,
                func,
                filename,
                lineno,
                condition,
                False,
                args,
                force=force,
                offset=offset,
            )
        return
Ejemplo n.º 5
0
 def run(self, args):
     if len(args) > 1:
         # FIXME: DRY this code. Better is to hook into tbreak.
         func, filename, lineno, condition, offset = parse_break_cmd(
             self.proc, args)
         if not set_break(self, func, filename, lineno, condition, True,
                          args):
             return False
     self.core.step_events = None  # All events
     self.core.step_ignore = -1
     self.proc.continue_running = True  # Break out of command read loop
     return True
Ejemplo n.º 6
0
 def run(self, args):
     if len(args) > 1:
         # FIXME: DRY this code. Better is to hook into tbreak.
         func, filename, lineno, condition = \
           Mcmdbreak.parse_break_cmd(self, args[1:])
         if not Mcmdbreak.set_break(self, func, filename, lineno, condition,
                                    True, args):
             return False
     self.core.step_events = None  # All events
     self.core.step_ignore = -1
     self.proc.continue_running = True  # Break out of command read loop
     return True
Ejemplo n.º 7
0
    def run(self, args):
        proc = self.proc
        if len(args) > 1:
            # FIXME: DRY this code. Better is to hook into tbreak.
            func, filename, lineno, condition = parse_break_cmd(proc, args)

            if not set_break(self, func, filename, lineno, condition, True,
                             args):
                return False
        elif args[0][-1] == "!":
            proc.vm.frame.event_flags = proc.vm.event_flags = 0  # ignore all events
        else:
            # Until we hook in breakpoints into the debugger proper, we'll
            # treat continue like step in the VM interpreter but not
            # from our filtering process
            proc.vm.frame.event_flags = PyVMEVENT_ALL
            proc.core.event_flags = (PyVMEVENT_LINE | PyVMEVENT_INSTRUCTION
                                     | PyVMEVENT_CALL | PyVMEVENT_FATAL)

        self.core.step_ignore = -1
        self.proc.continue_running = True  # Break out of command read loop
        self.return_status = "continue"  # Tell interpreter to continue running
Ejemplo n.º 8
0
 def run(self, args):
     func, filename, lineno, condition = Mcmdbreak.parse_break_cmd(self.proc, args)
     if not (func == None and filename == None):
         Mcmdbreak.set_break(self, func, filename, lineno, condition,
                             True, args)
     return
Ejemplo n.º 9
0
 def run(self, args):
     func, filename, lineno, condition = Mcmdbreak.parse_break_cmd(
         self, args[1:])
     Mcmdbreak.set_break(self, func, filename, lineno, condition, True,
                         args)
     return
Ejemplo n.º 10
0
 def run(self, args):
     func, filename, lineno, condition = Mcmdbreak.parse_break_cmd(self,
             args[1:])
     Mcmdbreak.set_break(self, func, filename, lineno, condition,
                         False, args)
     return