def remove(cls, target, id):
key, bp = cls.cache[id], cls.get(id)
if not isinstance(bp, (lldb.SBBreakpoint, lldb.SBWatchpoint)):
raise TypeError("{:s}.{:s}.remove : Unable to remove unknown breakpoint type. : {!r}".format(__name__, cls.__name__, bp.__class__))
cls.rm_command(target, id)
cls.__rm_cache(id)
cls.__rm_address(bp)
cls.__expression__.pop(key)
cls.__function__.pop(key)
return target.BreakpointDelete(bp.GetID()) if isinstance(bp, lldb.SBBreakpoint) else target.DeleteWatchpoint(bp.GetID())
评论列表
文章目录