root / disas.h @ cabb4d61
History | View | Annotate | Download (622 Bytes)
1 |
#ifndef _QEMU_DISAS_H
|
---|---|
2 |
#define _QEMU_DISAS_H
|
3 |
|
4 |
enum disas_type {
|
5 |
DISAS_I386_I386, |
6 |
DISAS_I386_I8086, |
7 |
DISAS_TARGET, /* whatever host is. */
|
8 |
}; |
9 |
|
10 |
/* Disassemble this for me please... (debugging). */
|
11 |
void disas(FILE *out, void *code, unsigned long size, enum disas_type type); |
12 |
|
13 |
/* Look up symbol for debugging purpose. Returns "" if unknown. */
|
14 |
const char *lookup_symbol(void *orig_addr); |
15 |
|
16 |
/* Filled in by elfload.c. Simplistic, but will do for now. */
|
17 |
extern unsigned int disas_num_syms; |
18 |
extern void *disas_symtab; /* FIXME: includes are a mess --RR */ |
19 |
extern const char *disas_strtab; |
20 |
#endif /* _QEMU_DISAS_H */ |