Shadow Stack  0.2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Static Public Member Functions | Private Types | Static Private Attributes | List of all members
Sym Struct Reference

Wrap symbols in a static class. More...

#include <dr_print_sym.hpp>

Public Member Functions

 Sym ()=delete
 Disable construction. More...
 

Static Public Member Functions

static void init ()
 The setup function for dr_print_sym Must be called by the DR client before print. More...
 
static void finish ()
 This function should be called when the client terminates. More...
 
static void print (const char *const description, const app_pc addr)
 Print symbol information for the what is located at addr description is a description of what the address addr points to. More...
 

Private Types

using PrintFn = void(*)(const char *const format,...)
 For clarity of the dependency injection below. More...
 

Static Private Attributes

static bool setup = false
 Record if syms is already setup. More...
 

Detailed Description

Wrap symbols in a static class.

Member Typedef Documentation

using Sym::PrintFn = void ( * )( const char *const format, ... )
private

For clarity of the dependency injection below.

Constructor & Destructor Documentation

Sym::Sym ( )
delete

Disable construction.

Member Function Documentation

void Sym::finish ( )
static

This function should be called when the client terminates.

void Sym::init ( )
static

The setup function for dr_print_sym Must be called by the DR client before print.

void Sym::print ( const char *const  description,
const app_pc  addr 
)
static

Print symbol information for the what is located at addr description is a description of what the address addr points to.

Member Data Documentation

bool Sym::setup = false
staticprivate

Record if syms is already setup.


The documentation for this struct was generated from the following files: