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

Make it possible to not stop execution after a given amount of steps #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nmeum
Copy link

@nmeum nmeum commented Jan 18, 2023

If I am not mistaken, there is currently no way to disable the "stop after N steps" feature. This commit allows disabling this feature by passing a zero value to the -s option. This is best combined with the --halt-pc option. That is, an invocation along the lines of

$ grift-sim --halt-pc 0x00011ce8 -s 0 my-binary.elf

will ensure that grift-sim only terminates iff it reaches PC 0x00011ce8.

I also think that -s 0 would be a better default than -s 10000 but refrained from changing the default since this would be a backwards-incompatible change.

If I am not mistaken, there is currently no way to disable the "stop
after N steps" feature. This commit allows disabling this feature
by passing a zero value to the `-s` option. This is best combined
with the `--halt-pc` option. I also think that `-s 0` would be a better
default than `-s 10000` but refrained from changing the default since
this would be a backwards-incompatible change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant