ROSE 0.11.145.147
|
Configuration information for a function.
Definition at line 128 of file Configuration.h.
#include <Rose/BinaryAnalysis/Partitioner2/Configuration.h>
Public Member Functions | |
Sawyer::Optional< rose_addr_t > | address () const |
Property: address. | |
FunctionConfiguration (rose_addr_t va, const std::string &name="") | |
Configuration information for a function. | |
FunctionConfiguration (const std::string &name) | |
Configuration information for a function. | |
FunctionConfiguration (const Sawyer::Optional< rose_addr_t > &va, const std::string &name) | |
Configuration information for a function. | |
const std::string & | name () const |
Property: name. | |
FunctionConfiguration & | name (const std::string &s) |
Property: name. | |
const std::string & | defaultName () const |
Property: default name. | |
FunctionConfiguration & | defaultName (const std::string &s) |
Property: default name. | |
const std::string & | comment () const |
Property: comment. | |
FunctionConfiguration & | comment (const std::string &s) |
Property: comment. | |
const SourceLocation & | sourceLocation () const |
Property: Location of function in source code. | |
FunctionConfiguration & | sourceLocation (const SourceLocation &loc) |
Property: Location of function in source code. | |
Sawyer::Optional< int64_t > | stackDelta () const |
Property: stack delta. | |
FunctionConfiguration & | stackDelta (const Sawyer::Optional< int64_t > &n) |
Property: stack delta. | |
Sawyer::Optional< bool > | mayReturn () const |
Property: may-return. | |
FunctionConfiguration & | mayReturn (const Sawyer::Optional< bool > &b) |
Property: may-return. | |
|
inline |
Definition at line 137 of file Configuration.h.
|
inlineexplicit |
Configuration information for a function.
Definition at line 142 of file Configuration.h.
|
inlineexplicit |
Configuration information for a function.
Definition at line 143 of file Configuration.h.
|
inline |
Configuration information for a function.
Definition at line 144 of file Configuration.h.
|
inline |
Property: address.
A function configuration has an optional address which is read-only, initialized by the constructor. The return value can be used in a boolean context to test whether the address is present and dereferenced to get the address. The Sawyer::Optional class has a number of other useful methods, such as getOrElse
and assignTo:
Definition at line 162 of file Configuration.h.
|
inline |
Property: name.
This is the name to use for the function regardless of what name has been given to this function's address by the ELF/PE container, symbol tables, etc. The name is read-only if the config has no address.
Definition at line 172 of file Configuration.h.
FunctionConfiguration & Rose::BinaryAnalysis::Partitioner2::FunctionConfiguration::name | ( | const std::string & | s | ) |
Property: name.
This is the name to use for the function regardless of what name has been given to this function's address by the ELF/PE container, symbol tables, etc. The name is read-only if the config has no address.
|
inline |
Property: default name.
This is the name to use for a function if it hasn't been given a name by any other means.
Definition at line 181 of file Configuration.h.
|
inline |
Property: default name.
This is the name to use for a function if it hasn't been given a name by any other means.
Definition at line 182 of file Configuration.h.
|
inline |
Property: comment.
A function may have a multi-line, plain-text, ASCII comment.
Definition at line 190 of file Configuration.h.
|
inline |
Property: comment.
A function may have a multi-line, plain-text, ASCII comment.
Definition at line 191 of file Configuration.h.
|
inline |
Property: Location of function in source code.
Definition at line 197 of file Configuration.h.
|
inline |
Property: Location of function in source code.
Definition at line 198 of file Configuration.h.
|
inline |
Property: stack delta.
The stack delta is a numeric value that indicates the net effect this function has on the stack pointer. If a stack delta is specified then it will be used instead of performing a stack delta analysis.
This is an optional property; see address for typical uses of the return value. The stack delta can be set by passing a signed value, and cleared by passing Sawyer::Nothing:
Definition at line 216 of file Configuration.h.
|
inline |
Property: stack delta.
The stack delta is a numeric value that indicates the net effect this function has on the stack pointer. If a stack delta is specified then it will be used instead of performing a stack delta analysis.
This is an optional property; see address for typical uses of the return value. The stack delta can be set by passing a signed value, and cleared by passing Sawyer::Nothing:
Definition at line 217 of file Configuration.h.
|
inline |
Property: may-return.
This property specifies whether the function might return to its caller. If the function might return, the value should be true; if the function cannot possibly return then the value is false; indeterminate values indicate that a may-return analysis should be performed.
Be careful using this return value: the return value is a SawyerOptional, which when evaluated in a boolean context will tell you whether a may-return value is present, not what that value is! In order to get the value, if present, you'll need to either dereference the return value or call something like orElse
or assignTo
.
Definition at line 231 of file Configuration.h.
|
inline |
Property: may-return.
This property specifies whether the function might return to its caller. If the function might return, the value should be true; if the function cannot possibly return then the value is false; indeterminate values indicate that a may-return analysis should be performed.
Be careful using this return value: the return value is a SawyerOptional, which when evaluated in a boolean context will tell you whether a may-return value is present, not what that value is! In order to get the value, if present, you'll need to either dereference the return value or call something like orElse
or assignTo
.
Definition at line 232 of file Configuration.h.