From 2cb7bef8645a8d9fdfd800295cd24f27c7d30298 Mon Sep 17 00:00:00 2001 From: ksew1 Date: Wed, 11 Jun 2025 15:02:26 +0200 Subject: [PATCH] dev: make `VirtualMachine::get_traceback_entries` pub --- CHANGELOG.md | 2 ++ vm/src/vm/vm_core.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84c2c0b0ff..22c8e8418a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* dev: make `VirtualMachine::get_traceback_entries` pub + * chore: Migrate from `pyenv` to `uv` [#1995](https://github.com/lambdaclass/cairo-vm/pull/1995) * chore: remove unused dependencies [#2111](https://github.com/lambdaclass/cairo-vm/pull/2111) diff --git a/vm/src/vm/vm_core.rs b/vm/src/vm/vm_core.rs index be89d2821d..2adcf47b09 100644 --- a/vm/src/vm/vm_core.rs +++ b/vm/src/vm/vm_core.rs @@ -821,9 +821,9 @@ impl VirtualMachine { Ok(()) } - // Returns the values (fp, pc) corresponding to each call instruction in the traceback. - // Returns the most recent call last. - pub(crate) fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> { + /// Returns the values (fp, pc) corresponding to each call instruction in the traceback. + /// Returns the most recent call last. + pub fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> { let mut entries = Vec::<(Relocatable, Relocatable)>::new(); let mut fp = Relocatable::from((1, self.run_context.fp)); // Fetch the fp and pc traceback entries