--- a/src/sh4/sh4.h Mon Feb 13 21:02:42 2012 +1000 +++ b/src/sh4/sh4.h Wed May 27 08:46:29 2015 +1000 @@ -161,7 +161,21 @@ */ gboolean sh4_get_profile_blocks(); +struct sh4_symbol { + const char *name; + sh4addr_t address; + unsigned size; +}; +typedef void (*sh4_symtab_destroy_cb)(struct sh4_symbol *table, unsigned size); + +/** + * Set the active symbol table used for disassembly. The table will be modified + * to sort it by address and eliminate duplicates. + * The callback supplied is invoked whenever the table is changed + * or removed. + */ +void sh4_set_symbol_table( struct sh4_symbol *table, unsigned symtab_size, sh4_symtab_destroy_cb callback ); #ifdef __cplusplus }