From 93ebb28c47aa021378249dcb34f215be14360230 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 17 May 2008 16:03:18 +0000 Subject: pvtrace --- symbols.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 symbols.h (limited to 'symbols.h') diff --git a/symbols.h b/symbols.h new file mode 100644 index 0000000..bf450ba --- /dev/null +++ b/symbols.h @@ -0,0 +1,33 @@ +/* $Id$ */ +/******************************************************************** + * File: symbols.h + * + * Symbols types and prototypes file. + * + * Author: M. Tim Jones + * + */ + +#ifndef __SYMBOLS_H +#define __SYMBOLS_H + +#define MAX_FUNCTIONS 200 +#define MAX_FUNCTION_NAME 50 + +typedef struct { + unsigned int address; + char funcName[MAX_FUNCTION_NAME+1]; +} func_t; + + +void initSymbol( char *imageName ); + +int lookupSymbol( unsigned int address ); + +void addSymbol( unsigned int address ); + +void addCallTrace( unsigned int address ); + +void emitSymbols( void ); + +#endif /* __SYMBOLS_H */ -- cgit v1.2.3