aboutsummaryrefslogtreecommitdiff
path: root/symbols.h
blob: 83b07a1bde242081b24e747adaad8131e74bbda2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* $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;

__BEGIN_DECLS
void initSymbol(char *imageName);
int lookupSymbol(unsigned int address);
void addSymbol(unsigned int address);
void addCallTrace(unsigned int address);
void emitSymbols(void);
__END_DECLS

#endif