|
gem5 v25.0.0.1
|
#include <symtab.hh>
Public Types | |
| enum class | Binding { Global , Local , Weak } |
| enum class | SymbolType { NoType , Object , Function , Section , File , Other } |
Public Member Functions | |
| Symbol (const Binding binding, const SymbolType type, const std::string &name, const Addr addr, const size_t size) | |
| Symbol (const Binding binding, const SymbolType type, const std::string &name, const Addr addr) | |
| Symbol (const Symbol &other)=default | |
| Symbol & | operator= (const Symbol &other)=default |
| Binding | binding () const |
| SymbolType | type () const |
| std::string | name () const |
| void | rename (const std::string &new_name) |
| Addr | address () const |
| void | relocate (const Addr new_addr) |
| size_t | sizeOrDefault (const size_t default_size) const |
| Return the Symbol size if it is valid, otherwise return the default value supplied. | |
| bool | sizeIsValid () const |
| Return whether the Symbol size is valid or not. | |
Private Attributes | |
| Binding | _binding |
| SymbolType | _type |
| std::string | _name |
| Addr | _address |
| size_t | _size |
| bool | _sizeIsValid |
|
strong |
|
strong |
|
inline |
Definition at line 83 of file symtab.hh.
References _address, _binding, _name, _size, _sizeIsValid, _type, gem5::X86ISA::addr, binding(), name(), and type().
Referenced by operator=(), and Symbol().
|
inline |
|
inline |
Definition at line 114 of file symtab.hh.
References _address.
Referenced by gem5::loader::ElfObject::ElfObject(), getSymbolError(), gem5::loader::SymbolTable::insert(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
inline |
|
inline |
Definition at line 106 of file symtab.hh.
References _name.
Referenced by gem5::loader::ElfObject::ElfObject(), getSymbolError(), gem5::loader::SymbolTable::insert(), gem5::loader::SymbolTable::rename(), Symbol(), Symbol(), TEST(), TEST(), TEST(), and TEST().
|
inline |
Definition at line 118 of file symtab.hh.
References _address.
Referenced by gem5::PowerProcess::initState().
|
inline |
Definition at line 110 of file symtab.hh.
References _name.
Referenced by gem5::loader::SymbolTable::rename().
|
inline |
Return whether the Symbol size is valid or not.
Definition at line 137 of file symtab.hh.
References _sizeIsValid.
|
inline |
Return the Symbol size if it is valid, otherwise return the default value supplied.
This method forces the client code to consider the possibility that the SymbolTable may contain Symbols that do not have valid sizes.
Definition at line 130 of file symtab.hh.
References _size, and _sizeIsValid.
|
inline |
|
private |
|
private |
|
private |
|
private |
Definition at line 146 of file symtab.hh.
Referenced by sizeOrDefault(), Symbol(), and Symbol().
|
private |
Definition at line 147 of file symtab.hh.
Referenced by sizeIsValid(), sizeOrDefault(), Symbol(), and Symbol().
|
private |