aboutsummaryrefslogtreecommitdiff
path: root/symbols.h
diff options
context:
space:
mode:
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 */