OpenASIP
2.0
|
#include <DisassembleCommand.hh>
Additional Inherited Members | |
Protected Member Functions inherited from SimControlLanguageCommand | |
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 "disassemble" command of the Simulator Control Language.
Definition at line 48 of file DisassembleCommand.hh.
DisassembleCommand::DisassembleCommand | ( | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 58 of file DisassembleCommand.cc.
|
virtual |
|
virtual |
Executes the "disassemble" command.
Prints a range of meory addresses as machine instructions. When two arguments addr1, addr2 are given, addr1 specifies the first address of the range to display, and addr2 specifies the last address (not displayed). If only one argument, addr1, is given, then the function that contains addr1 is disassembled. If no argument is given, the default memory range is the function surrounding the program counter of the selected frame.
arguments | The range of instruction memory to disassemble. |
Implements CustomCommand.
Definition at line 84 of file DisassembleCommand.cc.
References TTAProgram::Instruction::address(), assert, CustomCommand::checkArgumentCount(), SimControlLanguageCommand::checkProgramLoaded(), ScriptInterpreter::context(), SimulatorFrontend::currentProcedure(), SimulatorFrontend::disassembleInstruction(), TTAProgram::CodeSnippet::endAddress(), TTAProgram::Program::instructionAt(), CustomCommand::interpreter(), TTAProgram::CodeSnippet::lastInstruction(), TTAProgram::Program::lastProcedure(), TTAProgram::Address::location(), SimControlLanguageCommand::outputStream(), TTAProgram::Instruction::parent(), SimControlLanguageCommand::parseInstructionAddressExpression(), SimulatorFrontend::program(), ScriptInterpreter::setError(), SimulatorInterpreterContext::simulatorFrontend(), TTAProgram::Instruction::size(), and TTAProgram::CodeSnippet::startAddress().
|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 185 of file DisassembleCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_DISASSEMBLE.