--- trunk/src/include/symbol.h 2007/10/08 16:18:00 4 +++ trunk/src/include/symbol.h 2007/10/08 16:18:38 12 @@ -28,7 +28,7 @@ * SUCH DAMAGE. * * - * $Id: symbol.h,v 1.4 2005/02/11 09:53:49 debug Exp $ + * $Id: symbol.h,v 1.6 2005/08/09 17:18:23 debug Exp $ * * Symbol handling routines. */ @@ -42,6 +42,9 @@ uint64_t len; char *name; int type; + + int n_args; + /* TODO: argument types */ }; @@ -55,9 +58,11 @@ /* symbol.c: */ int symbol_nsymbols(struct symbol_context *); int get_symbol_addr(struct symbol_context *, char *symbol, uint64_t *addr); +char *get_symbol_name_and_n_args(struct symbol_context *, uint64_t addr, + uint64_t *offset, int *n_argsp); char *get_symbol_name(struct symbol_context *, uint64_t addr, uint64_t *offset); void add_symbol_name(struct symbol_context *, uint64_t addr, - uint64_t len, char *name, int type); + uint64_t len, char *name, int type, int n_args); void symbol_readfile(struct symbol_context *, char *fname); void symbol_recalc_sizes(struct symbol_context *); void symbol_init(struct symbol_context *);