4 #include "qemu-common.h"
7 /* Disassemble this for me please... (debugging). */
8 void disas(FILE *out
, void *code
, unsigned long size
);
9 void target_disas(FILE *out
, CPUArchState
*env
, target_ulong code
,
10 target_ulong size
, int flags
);
12 void monitor_disas(Monitor
*mon
, CPUArchState
*env
,
13 target_ulong pc
, int nb_insn
, int is_physical
, int flags
);
15 /* Look up symbol for debugging purpose. Returns "" if unknown. */
16 const char *lookup_symbol(target_ulong orig_addr
);
23 #if defined(CONFIG_USER_ONLY)
24 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, target_ulong orig_addr
);
26 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, hwaddr orig_addr
);
30 lookup_symbol_t lookup_symbol
;
31 unsigned int disas_num_syms
;
33 struct elf32_sym
*elf32
;
34 struct elf64_sym
*elf64
;
36 const char *disas_strtab
;
40 /* Filled in by elfload.c. Simplistic, but will do for now. */
41 extern struct syminfo
*syminfos
;
43 #endif /* _QEMU_DISAS_H */