filename | src/sh4/sh4.h |
changeset | 1300:d18488c8668b |
prev | 1218:be02e87f9f87 |
author | nkeynes |
date | Wed May 27 08:46:29 2015 +1000 (8 years ago) |
permissions | -rw-r--r-- |
last change | Add support for extracting the ELF symbol table and printing symbol names alongside the SH4 disassembly |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4.h Mon Feb 13 21:02:42 2012 +10001.2 +++ b/src/sh4/sh4.h Wed May 27 08:46:29 2015 +10001.3 @@ -161,7 +161,21 @@1.4 */1.5 gboolean sh4_get_profile_blocks();1.7 +struct sh4_symbol {1.8 + const char *name;1.9 + sh4addr_t address;1.10 + unsigned size;1.11 +};1.13 +typedef void (*sh4_symtab_destroy_cb)(struct sh4_symbol *table, unsigned size);1.14 +1.15 +/**1.16 + * Set the active symbol table used for disassembly. The table will be modified1.17 + * to sort it by address and eliminate duplicates.1.18 + * The callback supplied is invoked whenever the table is changed1.19 + * or removed.1.20 + */1.21 +void sh4_set_symbol_table( struct sh4_symbol *table, unsigned symtab_size, sh4_symtab_destroy_cb callback );1.23 #ifdef __cplusplus1.24 }
.