4 #include "exec/hwaddr.h"
9 /* Disassemble this for me please... (debugging). */
10 void disas(FILE *out
, void *code
, unsigned long size
, const char *note
);
11 void target_disas(FILE *out
, CPUState
*cpu
, target_ulong code
,
14 void monitor_disas(Monitor
*mon
, CPUState
*cpu
,
15 target_ulong pc
, int nb_insn
, int is_physical
);
17 char *plugin_disas(CPUState
*cpu
, uint64_t addr
, size_t size
);
19 /* Look up symbol for debugging purpose. Returns "" if unknown. */
20 const char *lookup_symbol(target_ulong orig_addr
);
27 #if defined(CONFIG_USER_ONLY)
28 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, target_ulong orig_addr
);
30 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, hwaddr orig_addr
);
34 lookup_symbol_t lookup_symbol
;
35 unsigned int disas_num_syms
;
37 struct elf32_sym
*elf32
;
38 struct elf64_sym
*elf64
;
40 const char *disas_strtab
;
44 /* Filled in by elfload.c. Simplistic, but will do for now. */
45 extern struct syminfo
*syminfos
;
47 #endif /* QEMU_DISAS_H */