OpenASIP
2.0
|
#include <WatchCommand.hh>
Additional Inherited Members | |
![]() | |
bool | setMemoryAddress (const std::string &addressString, std::string &addressSpaceName, std::size_t &memoryAddress) |
bool | setMemoryPointer (MemorySystem::MemoryPtr &memory, const std::string &addressSpaceName) |
Implementation of the "watch" command of the Simulator Control Language.
Definition at line 47 of file WatchCommand.hh.
WatchCommand::WatchCommand | ( | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 50 of file WatchCommand.cc.
|
virtual |
|
virtual |
Executes the "watch" command.
A watch stops the simulation whenever the given expression changes its value. It is possible to add a condition to a watch, to control when the Simulator must stop with increased precision.
arguments | None. The expression is queried from the user. |
NumberFormatException | Is never thrown by this command. |
Implements CustomCommand.
Definition at line 73 of file WatchCommand.cc.
References StopPointManager::add(), SimControlLanguageCommand::askExpressionFromUser(), CustomCommand::checkArgumentCount(), SimControlLanguageCommand::printBreakpointInfo(), SimControlLanguageCommand::simulatorFrontend(), and SimulatorFrontend::stopPointManager().
|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 98 of file WatchCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_WATCH.