mcmini-gdb: fix "mcmini back" #121
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Probably, I will close this draft. The code is now in another PR.
Previously, the 'mcmini back' command in GDB mode was never really working.
This commit attempts to fix it.
@maxwellpirtle ,
There is a bug in mcmini_private.cpp, when I do
mc_prepare_to_model_check_new_program(). I'm sure it's easy for you to fix this bug, or tell me how to do it.I'm simply trying to re-initialize McMini to begin its search again at
traceId==0. But as you can see from my suggested test, below, when I callmcmini back, instead of reducing the number of transitions for this trace from 9 to 8, instead, it grows the number of transitions. So, clearly I did not re-initialize McMini properly to again start attraceId==0. (For motivation, I'm trying to add support formcmini backwhen interactively debugging a traceSeq, such as:To test it, use your favorite target multithreaded application,
a.out, and do: