disas.h 707 字节
Newer Older
B
bellard 已提交
1 2 3 4
#ifndef _QEMU_DISAS_H
#define _QEMU_DISAS_H

/* Disassemble this for me please... (debugging). */
B
bellard 已提交
5
void disas(FILE *out, void *code, unsigned long size);
6
void target_disas(FILE *out, target_ulong code, target_ulong size, int flags);
B
bellard 已提交
7 8
void monitor_disas(CPUState *env,
                   target_ulong pc, int nb_insn, int is_physical, int flags);
B
bellard 已提交
9 10

/* Look up symbol for debugging purpose.  Returns "" if unknown. */
B
bellard 已提交
11
const char *lookup_symbol(target_ulong orig_addr);
B
bellard 已提交
12 13

/* Filled in by elfload.c.  Simplistic, but will do for now. */
B
bellard 已提交
14 15 16 17 18 19 20
extern struct syminfo {
    unsigned int disas_num_syms;
    void *disas_symtab;
    const char *disas_strtab;
    struct syminfo *next;
} *syminfos;

B
bellard 已提交
21
#endif /* _QEMU_DISAS_H */