4 /* Disassemble this for me please... (debugging). */
5 void disas(FILE *out
, const void *code
, size_t size
);
6 void target_disas(FILE *out
, CPUState
*cpu
, uint64_t code
, size_t size
);
8 void monitor_disas(Monitor
*mon
, CPUState
*cpu
, uint64_t pc
,
9 int nb_insn
, bool is_physical
);
11 char *plugin_disas(CPUState
*cpu
, uint64_t addr
, size_t size
);
13 /* Look up symbol for debugging purpose. Returns "" if unknown. */
14 const char *lookup_symbol(uint64_t orig_addr
);
20 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, uint64_t orig_addr
);
23 lookup_symbol_t lookup_symbol
;
24 unsigned int disas_num_syms
;
26 struct elf32_sym
*elf32
;
27 struct elf64_sym
*elf64
;
29 const char *disas_strtab
;
33 /* Filled in by elfload.c. Simplistic, but will do for now. */
34 extern struct syminfo
*syminfos
;
36 #endif /* QEMU_DISAS_H */