add line number and thread id to tracing logs

This commit is contained in:
Pere Diaz Bou
2025-03-05 13:13:18 +01:00
parent 9a01e32c01
commit 262c4de548
5 changed files with 17 additions and 84 deletions

View File

@@ -73,6 +73,7 @@ use std::ffi::c_void;
use std::num::NonZero;
use std::rc::{Rc, Weak};
use std::sync::{Arc, Mutex};
use tracing::instrument;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
/// Represents a target for a jump instruction.
@@ -348,6 +349,7 @@ impl Program {
}
}
#[instrument(skip_all)]
pub fn step(&self, state: &mut ProgramState, pager: Rc<Pager>) -> Result<StepResult> {
loop {
if state.is_interrupted() {