"""Offline assertion breakpoint in the native test executable, not game code.""" import ctypes as c import struct from capstone import Cs, CS_ARCH_X86, CS_MODE_32 from debug_native_crash import K, ROOT, Startup, Process, Event from check_card_exit_build import Coff def main(): obj = Coff(ROOT / "build/actions/actions-test.obj") sec, start = obj.functions["_RunWheelSceneTest3D@0"] raw, size, _ = obj.sections[sec] end = min(v for s, v in obj.functions.values() if s == sec and v > start) instructions = list(Cs(CS_ARCH_X86, CS_MODE_32).disasm(obj.data[raw + start:raw + end], start)) trap_offset = instructions[-6].address assert instructions[-6].mnemonic == "mov" symbols = {} _, _, _, table, total, _, _ = struct.unpack_from("