Skip to content

Instantly share code, notes, and snippets.

@JJTech0130
JJTech0130 / debugger_jit_improved.m
Last active May 24, 2025 02:11
Improved method of using a debugger for JIT on iOS... Uses split rx/rw regions, and works on iOS 18.4b1
#import <Foundation/Foundation.h>
#import <mach/mach.h>
#import <stdio.h>
#import <stdlib.h>
#import <string.h>
#include <libkern/OSCacheControl.h>
const int REGION_SIZE = 0x4000*1;
void write_instructions(void* page)