4 /* Disassemble this for me please... (debugging). */
6 void disas(FILE *out
, const void *code
, size_t size
);
7 void target_disas(FILE *out
, CPUState
*cpu
, const DisasContextBase
*db
);
10 void monitor_disas(Monitor
*mon
, CPUState
*cpu
, uint64_t pc
,
11 int nb_insn
, bool is_physical
);
14 char *plugin_disas(CPUState
*cpu
, const DisasContextBase
*db
,
15 uint64_t addr
, size_t size
);
18 /* Look up symbol for debugging purpose. Returns "" if unknown. */
19 const char *lookup_symbol(uint64_t orig_addr
);
25 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, uint64_t orig_addr
);
28 lookup_symbol_t lookup_symbol
;
29 unsigned int disas_num_syms
;
31 struct elf32_sym
*elf32
;
32 struct elf64_sym
*elf64
;
34 const char *disas_strtab
;
38 /* Filled in by elfload.c. Simplistic, but will do for now. */
39 extern struct syminfo
*syminfos
;
41 #endif /* QEMU_DISAS_H */