From 4de1b8bd077ebb842168a142f33638c02a5ff73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20W=C3=BCtherich?= <117232355+wuetj@users.noreply.github.com> Date: Mon, 1 Dec 2025 23:13:51 +0100 Subject: [PATCH] Hooks: Add warning about ARM IT blocks with UC_HOOK_CODE --- docs/Hooks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/Hooks.md b/docs/Hooks.md index c72c27fb8a..f4984d98cc 100644 --- a/docs/Hooks.md +++ b/docs/Hooks.md @@ -34,6 +34,9 @@ You might also use it to trace the execution with a disassembly, in a similar wa If you want to inject behaviour you might use this hook to modify the registers - including modifying the program counter, to jump to a different place. +> [!WARNING] +> **ARM only:** Changes to the program counter are ignored when the callback is invoked inside an *If-Then (IT)* block. + ## UC_HOOK_MEM_READ, UC_HOOK_MEM_WRITE, UC_HOOK_READ_MEM_AFTER