<bp-manager.con-string>.wait-for <bp-manager.cr>.break
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

<bp-manager.con-string>.wait-then-write

Synopsis

<bp-manager.con-string>.wait-then-write console [-regexp] [-e] "output-string" "input-string"

Description

Wait for the output of the text output-string on console. When the text is found, write input-string to the console. This command can only be run from a script branch where it suspends the branch until the string has been found in the output.

The -e flag allows specifying the input string using an Emacs-style keystroke, similar to input.

If -regexp is specified, the breakpoint string will be interpreted as a regular expression (regexp). The regexp syntax follows the common Perl style, as interpreted by the Hyperscan library https://hyperscan.io.

Note that the string is a Simics CLI string, and thus \ has to be escaped as \\ when writing the regexp.

Examples:

For more information about regular expression syntax, see https://perldoc.perl.org/re.html.

Provided By

bp-manager

See Also

<break_strings_v2>.bp-break-console-string, <break_strings_v2>.bp-wait-for-console-string, script-branch
<bp-manager.con-string>.wait-for <bp-manager.cr>.break