symbol.cc File Reference

Back to the index.

Macros | Functions
symbol.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "symbol.h"

Go to the source code of this file.

Macros

#define SYMBOLBUF_MAX   100
 

Functions

int symbol_nsymbols (struct symbol_context *sc)
 
int get_symbol_addr (struct symbol_context *sc, const char *symbol, uint64_t *addr)
 
char * get_symbol_name_and_n_args (struct symbol_context *sc, uint64_t addr, uint64_t *offset, int *n_argsp)
 
char * get_symbol_name (struct symbol_context *sc, uint64_t addr, uint64_t *offs)
 
void add_symbol_name (struct symbol_context *sc, uint64_t addr, uint64_t len, const char *name, int type, int n_args)
 
void symbol_readfile (struct symbol_context *sc, char *fname)
 
int sym_addr_compare (const void *a, const void *b)
 
void symbol_recalc_sizes (struct symbol_context *sc)
 
void symbol_init (struct symbol_context *sc)
 

Macro Definition Documentation

◆ SYMBOLBUF_MAX

#define SYMBOLBUF_MAX   100

Definition at line 42 of file symbol.cc.

Function Documentation

◆ add_symbol_name()

void add_symbol_name ( struct symbol_context sc,
uint64_t  addr,
uint64_t  len,
const char *  name,
int  type,
int  n_args 
)

◆ get_symbol_addr()

int get_symbol_addr ( struct symbol_context sc,
const char *  symbol,
uint64_t *  addr 
)

◆ get_symbol_name()

char* get_symbol_name ( struct symbol_context sc,
uint64_t  addr,
uint64_t *  offs 
)

◆ get_symbol_name_and_n_args()

char* get_symbol_name_and_n_args ( struct symbol_context sc,
uint64_t  addr,
uint64_t *  offset,
int *  n_argsp 
)

Definition at line 110 of file symbol.cc.

References addr, and symbol_context::n_symbols.

Referenced by cpu_functioncall_trace(), and get_symbol_name().

◆ sym_addr_compare()

int sym_addr_compare ( const void *  a,
const void *  b 
)

Definition at line 341 of file symbol.cc.

References symbol::addr.

Referenced by symbol_recalc_sizes().

◆ symbol_init()

void symbol_init ( struct symbol_context sc)

◆ symbol_nsymbols()

int symbol_nsymbols ( struct symbol_context sc)

Definition at line 49 of file symbol.cc.

References symbol_context::n_symbols.

◆ symbol_readfile()

void symbol_readfile ( struct symbol_context sc,
char *  fname 
)

◆ symbol_recalc_sizes()

void symbol_recalc_sizes ( struct symbol_context sc)

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18