Search
lxdream.org :: lxdream/src/sh4/sh4.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.h
changeset 1300:d18488c8668b
prev1218:be02e87f9f87
author nkeynes
date Wed May 27 08:46:29 2015 +1000 (4 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 +1000
1.2 +++ b/src/sh4/sh4.h Wed May 27 08:46:29 2015 +1000
1.3 @@ -161,7 +161,21 @@
1.4 */
1.5 gboolean sh4_get_profile_blocks();
1.6
1.7 +struct sh4_symbol {
1.8 + const char *name;
1.9 + sh4addr_t address;
1.10 + unsigned size;
1.11 +};
1.12
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 modified
1.17 + * to sort it by address and eliminate duplicates.
1.18 + * The callback supplied is invoked whenever the table is changed
1.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.22
1.23 #ifdef __cplusplus
1.24 }
.