MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_exception_bitness

Method get_exception_bitness

windows/debug/debugger.py:1031–1040  ·  view source on GitHub ↗

Return the bitness in which the exception occured. Useful when debugingg a 32b process from a 64bits one :return: :class:`int` -- 32 or 64

(self, exc)

Source from the content-addressed store, hash-verified

1029 self.restore_all_memory_breakpoints(data, target)
1030
1031 def get_exception_bitness(self, exc):
1032 """Return the bitness in which the exception occured.
1033 Useful when debugingg a 32b process from a 64bits one
1034
1035 :return: :class:`int` -- 32 or 64"""
1036 if windows.current_process.bitness == 32:
1037 return 32
1038 if exc.ExceptionRecord.ExceptionCode in [STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP]:
1039 return 32
1040 return 64
1041
1042 @staticmethod
1043 def kill_on_exit(choice):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected