|
PStack
2.0
Stack trace printer for MSVC and GCC binaries
|
A container for data about a single debugger symbol. More...
#include <symbol.hpp>
Construction / Destruction | |
| symbol (address_t address, address_t code_offset, tstring const &name) noexcept | |
| Construct an instance of the psystem::symbol. More... | |
Public Interface | |
| address_t | get_address () const noexcept |
| Access the memory location of the symbol. More... | |
| address_t | get_code_offset () const noexcept |
| Access the code offset from the PC to the symbol start. More... | |
| tstring | get_name () const noexcept |
| The symbol name. More... | |
Member Data | |
| address_t | m_address |
| The memory location of the symbol. | |
| address_t | m_code_offset |
| The distance from the function entry point of the PC (in the current frame context). More... | |
| tstring | m_name |
| The symbol's (possibly mangled) name. | |
A container for data about a single debugger symbol.
Debugger symbols have an address and hopefully a name. After this, depending on type (e.g., function, variable), they may have a source file and line location, a runtime value, and so on.
There should be a function_symbol as well as a plain symbol.
Rename to symbol_info...
Construct an instance of the psystem::symbol.
| [in] | address | The memory location of the debugging symbol. |
| [in] | code_offset | The distance from the function entry point of the current PC (in the current frame context). |
| [in] | name | The (possibly mangled) symbol name. |
|
noexcept |
Access the memory location of the symbol.
|
noexcept |
Access the code offset from the PC to the symbol start.
nullptr is a valid value.
|
noexcept |
The symbol name.
|
private |
The distance from the function entry point of the PC (in the current frame context).