code: def __cleanup_process(self, event):
          
          pid     = event.get_pid()
          process = event.get_process()
  
          # Cleanup code breakpoints
          for (bp_pid, bp_address) in compat.keys(self.__codeBP):
              if bp_pid == pid:
                  bp = self.__codeBP[ (bp_pid, bp_address) ]
                  self.__cleanup_breakpoint(event, bp)
                  del self.__codeBP[ (bp_pid, bp_address) ]
  
          # Cleanup page breakpoints
          for (bp_pid, bp_address) in compat.keys(self.__pageBP):
              if bp_pid == pid:
                  bp = self.__pageBP[ (bp_pid, bp_address) ]
                  self.__cleanup_breakpoint(event, bp)
                  del self.__pageBP[ (bp_pid, bp_address) ]
  
          # Cleanup deferred code breakpoints
          try:
              del self.__deferredBP[pid]
          except KeyError:
              pass
docs: Auxiliary method for L{_notify_exit_process}.