DynamoRIO
_drsym_info_t Struct Reference

#include <drsyms.h>

Data Fields

size_t struct_size
 
size_t name_size
 
size_t file_size
 
size_t file_available_size
 
char * file
 
uint64 line
 
size_t line_offs
 
size_t start_offs
 
size_t end_offs
 
drsym_debug_kind_t debug_kind
 
uint type_id
 
size_t name_available_size
 
char * name
 
uint flags
 

Detailed Description

Data structure that holds symbol information

Field Documentation

◆ debug_kind

drsym_debug_kind_t _drsym_info_t::debug_kind

Output: type of the debug info available for this module

◆ end_offs

size_t _drsym_info_t::end_offs

Output: offset from module base of end of symbol.

Note
For DRSYM_PECOFF_SYMTAB (Cygwin or MinGW) or DRSYM_MACHO_SYMTAB (MacOS) symbols, the end offset is not known precisely. The start address of the subsequent symbol will be stored here.

◆ file

char* _drsym_info_t::file

Output: file name (storage allocated by caller, of size file_size). Guaranteed to be null-terminated. Optional: can be set to NULL.

◆ file_available_size

size_t _drsym_info_t::file_available_size

Output: size of data available for file (not including terminating null). Only file_size bytes will be copied to file.

◆ file_size

size_t _drsym_info_t::file_size

Input: should be set by caller to the size of the file buffer, in bytes

◆ flags

uint _drsym_info_t::flags

Output: the demangling status of the symbol, as drsym_flags_t values.

◆ line

uint64 _drsym_info_t::line

Output: line number

◆ line_offs

size_t _drsym_info_t::line_offs

Output: offset from address that starts at line

◆ name

char* _drsym_info_t::name

Output: symbol name (storage allocated by caller, of size name_size). Guaranteed to be null-terminated. Optional: can be set to NULL.

◆ name_available_size

size_t _drsym_info_t::name_available_size

Output: size of data available for name (not including terminating null). Only name_size bytes will be copied to name.

◆ name_size

size_t _drsym_info_t::name_size

Input: should be set by caller to the size of the name buffer, in bytes

◆ start_offs

size_t _drsym_info_t::start_offs

Output: offset from module base of start of symbol. For Mach-O executables, the module base is after any __PAGEZERO segment.

◆ struct_size

size_t _drsym_info_t::struct_size

Input: should be set by caller to sizeof(drsym_info_t)

◆ type_id

uint _drsym_info_t::type_id

Output: type id for passing to drsym_expand_type()


The documentation for this struct was generated from the following file:
  • /home/runner/work/dynamorio/dynamorio/ext/drsyms/drsyms.h