aboutsummaryrefslogtreecommitdiff
path: root/symbols.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2008-05-17 16:03:18 +0000
committerDimitri Sokolyuk <demon@dim13.org>2008-05-17 16:03:18 +0000
commit93ebb28c47aa021378249dcb34f215be14360230 (patch)
tree9c090d512ec8384297fbc5e5c904a4785dfe6713 /symbols.h
pvtrace
Diffstat (limited to 'symbols.h')
-rw-r--r--symbols.h33
1 files changed, 33 insertions, 0 deletions
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 <mtj@mtjones.com>
+ *
+ */
+
+#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 */