Skip to content

Commit 56cbd14

Browse files
gabrielbosioksew1
andauthored
dev: make VirtualMachine::get_traceback_entries pub (#2144)
Co-authored-by: ksew1 <karol.sewilo@swmansion.com>
1 parent 353e283 commit 56cbd14

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* dev: make `VirtualMachine::get_traceback_entries` pub
6+
57
* chore: Pin types-rs version to the one set in lockfile [#2140](https://github.com/lambdaclass/cairo-vm/pull/2140)
68

79
#### [2.2.0] - 2025-05-28

vm/src/vm/vm_core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,9 @@ impl VirtualMachine {
822822
Ok(())
823823
}
824824

825-
// Returns the values (fp, pc) corresponding to each call instruction in the traceback.
826-
// Returns the most recent call last.
827-
pub(crate) fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> {
825+
/// Returns the values (fp, pc) corresponding to each call instruction in the traceback.
826+
/// Returns the most recent call last.
827+
pub fn get_traceback_entries(&self) -> Vec<(Relocatable, Relocatable)> {
828828
let mut entries = Vec::<(Relocatable, Relocatable)>::new();
829829
let mut fp = Relocatable::from((1, self.run_context.fp));
830830
// Fetch the fp and pc traceback entries

0 commit comments

Comments
 (0)