Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for &'static data to the interpreter #75

Open
willcrichton opened this issue May 10, 2023 · 0 comments
Open

Add support for &'static data to the interpreter #75

willcrichton opened this issue May 10, 2023 · 0 comments
Labels

Comments

@willcrichton
Copy link
Collaborator

Currently, the interpreter does not support visualizing data that lives in the binary, e.g. &'static str (see also #49). For example, we should be able to visualize this program in the Rust Book:

fn main() {
let s: &'static str = "I have a static lifetime.";
}

This change will require modifying VisEvaluator::build_step to extract data held in the "binary" (wherever that is in Miri, not sure) similar to how the heap is extracted. Then the StepView will need to be updated to contain a new memory region that represents the binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant