Example code to break into an interactive console from a component#6
Draft
skuntz wants to merge 6 commits intotactcomplabs:develfrom
Draft
Example code to break into an interactive console from a component#6skuntz wants to merge 6 commits intotactcomplabs:develfrom
skuntz wants to merge 6 commits intotactcomplabs:develfrom
Conversation
Collaborator
Author
|
Note that this requires Werror disabled. There are some warnings in sst-core serialization that will cause errors otherwise. |
Collaborator
Author
|
Using SST.h resolves the compiler warnings. |
Collaborator
|
I just added guidelines for sst integration in PR #7 to help future developers avoid the -Werror issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This code provides an example (igrid) of breaking into an interactive console from a component (in this case in the event handler). It defines a breakEnable variable that can be set from the command line. It can also be set from the interactive console to turn the break capability on/off during execution. Note that setting breakEnable from the command line enables it for all
components. However, modifying it from the interactive console must be done for each component individually. So, for example, you could "set breakEnable 0" for the instance in component 0 but it would still be enabled in other components.
The BaseComponent::initiateInteractive() functionality is used to break into the interactive console. (Note: This is different from a previous version that used the interactive realtime action directly, which is an invalid use of realtime actions per Sandia.)
The test_igrid.sh tests the break into an interactive console from a component.
The test_interactive_console gives an example of using the interactive_console with the built-in
--interactive-start=1sflag.This example can be expanded to support more complex debugging funtionality.