MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / set_flag_value

Method set_flag_value

pydevd_attach_to_process/winappdbg/thread.py:746–761  ·  view source on GitHub ↗

Sets a single flag, leaving the others intact. @type FlagBit: int @param FlagBit: One of the L{Flags}. @type FlagValue: bool @param FlagValue: Boolean value of the flag.

(self, FlagBit, FlagValue)

Source from the content-addressed store, hash-verified

744 return bool(self.get_flags(FlagBit))
745
746 def set_flag_value(self, FlagBit, FlagValue):
747 """
748 Sets a single flag, leaving the others intact.
749
750 @type FlagBit: int
751 @param FlagBit: One of the L{Flags}.
752
753 @type FlagValue: bool
754 @param FlagValue: Boolean value of the flag.
755 """
756 if FlagValue:
757 eflags = FlagBit
758 else:
759 eflags = 0
760 FlagMask = 0xFFFFFFFF ^ FlagBit
761 self.set_flags(eflags, FlagMask)
762
763 def get_zf(self):
764 """

Callers 10

clear_zfMethod · 0.95
clear_cfMethod · 0.95
clear_sfMethod · 0.95
clear_dfMethod · 0.95
clear_tfMethod · 0.95
set_zfMethod · 0.95
set_cfMethod · 0.95
set_sfMethod · 0.95
set_dfMethod · 0.95
set_tfMethod · 0.95

Calls 1

set_flagsMethod · 0.95

Tested by

no test coverage detected