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
, target_ulong code
, target_ulong size
, int flags
);
11 void monitor_disas(Monitor
*mon
, CPUArchState
*env
,
12 target_ulong pc
, int nb_insn
, int is_physical
, int flags
);
14 /* Look up symbol for debugging purpose. Returns "" if unknown. */
15 const char *lookup_symbol(target_ulong orig_addr
);
22 #if defined(CONFIG_USER_ONLY)
23 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, target_ulong orig_addr
);
25 typedef const char *(*lookup_symbol_t
)(struct syminfo
*s
, hwaddr orig_addr
);
29 lookup_symbol_t lookup_symbol
;
30 unsigned int disas_num_syms
;
32 struct elf32_sym
*elf32
;
33 struct elf64_sym
*elf64
;
35 const char *disas_strtab
;
39 /* Filled in by elfload.c. Simplistic, but will do for now. */
40 extern struct syminfo
*syminfos
;
42 #endif /* _QEMU_DISAS_H */