From 4956cbc1057a86deb15dfaeba9281622f96e4ae5 Mon Sep 17 00:00:00 2001 From: piotmag769 Date: Wed, 28 Jan 2026 18:08:21 +0100 Subject: [PATCH] Add comment about pc terminology --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index b7734b2..9548a01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,9 @@ +//! Disclaimer: unless stated otherwise, any `pc`-like value in this codebase refers to an offset +//! in the program segment (the first VM segment), not a value of pc in a relocated trace. +//! +//! It is done this way since the debugger is a VM hook - +//! and during VM execution pc is a relocatable, not a value from a relocated trace entry. + mod connection; mod debugger;