summaryrefslogtreecommitdiff
path: root/disas.h
diff options
context:
space:
mode:
Diffstat (limited to 'disas.h')
-rw-r--r--disas.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/disas.h b/disas.h
index ee0a79c259..13c2aa3616 100644
--- a/disas.h
+++ b/disas.h
@@ -10,12 +10,24 @@ void monitor_disas(CPUState *env,
/* Look up symbol for debugging purpose. Returns "" if unknown. */
const char *lookup_symbol(target_ulong orig_addr);
-/* Filled in by elfload.c. Simplistic, but will do for now. */
-extern struct syminfo {
+struct syminfo;
+struct elf32_sym;
+struct elf64_sym;
+
+typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_ulong orig_addr);
+
+struct syminfo {
+ lookup_symbol_t lookup_symbol;
unsigned int disas_num_syms;
- void *disas_symtab;
+ union {
+ struct elf32_sym *elf32;
+ struct elf64_sym *elf64;
+ } disas_symtab;
const char *disas_strtab;
struct syminfo *next;
-} *syminfos;
+};
+
+/* Filled in by elfload.c. Simplistic, but will do for now. */
+extern struct syminfo *syminfos;
#endif /* _QEMU_DISAS_H */