Otawa
0.10
|
Symbolic address as an absolute address. More...
#include <otawa/util/SymAddress.h>
Public Member Functions | |
AbsoluteAddress (Address addr) | |
virtual Address | toAddress (WorkSpace *ws) |
Expand the current symbolic address as an actual address in the given workspace. More... | |
virtual CFG * | cfg (WorkSpace *ws) |
Get the CFG matching the given address. More... | |
virtual void | print (io::Output &out) |
Print the symbolic address. More... | |
Static Public Member Functions | |
static SymAddress * | parse (string str) throw (otawa::Exception) |
Parse a symbolic address from a string. More... | |
Private Attributes | |
Address | _addr |
Symbolic address as an absolute address.
otawa::AbsoluteAddress::AbsoluteAddress | ( | Address | addr | ) |
Get the CFG matching the given address.
CFG_INFO_FEATURE should be available first.
ws | Workspace to look in. |
Implements otawa::SymAddress.
References _addr, otawa::CFG_INFO_FEATURE, otawa::WorkSpace::findInstAt(), otawa::CFGInfo::ID, and otawa::WorkSpace::isProvided().
|
staticinherited |
Parse a symbolic address from a string.
str | String to parse. |
otawa::Exception | Thrown if there is a parsing error. |
References elm::MessageException::message(), and otawa::sem::neg().
Referenced by otawa::Application::parseAddress().
|
virtual |
Print the symbolic address.
out | Stream to output to. |
Implements otawa::SymAddress.
References _addr.
Expand the current symbolic address as an actual address in the given workspace.
ws | Workspace to expand in. |
Implements otawa::SymAddress.
References _addr.
|
private |
Referenced by cfg(), print(), and toAddress().