root / disas.h @ cc84de95
History | View | Annotate | Download (1.1 kB)
1 | b9adb4a6 | bellard | #ifndef _QEMU_DISAS_H
|
---|---|---|---|
2 | b9adb4a6 | bellard | #define _QEMU_DISAS_H
|
3 | b9adb4a6 | bellard | |
4 | 376253ec | aliguori | #include "qemu-common.h" |
5 | 376253ec | aliguori | |
6 | ca20cf32 | Blue Swirl | #ifdef NEED_CPU_H
|
7 | b9adb4a6 | bellard | /* Disassemble this for me please... (debugging). */
|
8 | c27004ec | bellard | void disas(FILE *out, void *code, unsigned long size); |
9 | 83b34f8b | bellard | void target_disas(FILE *out, target_ulong code, target_ulong size, int flags); |
10 | 376253ec | aliguori | |
11 | 376253ec | aliguori | /* The usual mess... FIXME: Remove this condition once dyngen-exec.h is gone */
|
12 | 376253ec | aliguori | #ifndef __DYNGEN_EXEC_H__
|
13 | 376253ec | aliguori | void monitor_disas(Monitor *mon, CPUState *env,
|
14 | 3476562d | bellard | target_ulong pc, int nb_insn, int is_physical, int flags); |
15 | 376253ec | aliguori | #endif
|
16 | b9adb4a6 | bellard | |
17 | b9adb4a6 | bellard | /* Look up symbol for debugging purpose. Returns "" if unknown. */
|
18 | c27004ec | bellard | const char *lookup_symbol(target_ulong orig_addr); |
19 | ca20cf32 | Blue Swirl | #endif
|
20 | b9adb4a6 | bellard | |
21 | 49918a75 | pbrook | struct syminfo;
|
22 | 49918a75 | pbrook | struct elf32_sym;
|
23 | 49918a75 | pbrook | struct elf64_sym;
|
24 | 49918a75 | pbrook | |
25 | c227f099 | Anthony Liguori | typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_phys_addr_t orig_addr); |
26 | 49918a75 | pbrook | |
27 | 49918a75 | pbrook | struct syminfo {
|
28 | 49918a75 | pbrook | lookup_symbol_t lookup_symbol; |
29 | e80cfcfc | bellard | unsigned int disas_num_syms; |
30 | 49918a75 | pbrook | union {
|
31 | 49918a75 | pbrook | struct elf32_sym *elf32;
|
32 | 49918a75 | pbrook | struct elf64_sym *elf64;
|
33 | 49918a75 | pbrook | } disas_symtab; |
34 | e80cfcfc | bellard | const char *disas_strtab; |
35 | e80cfcfc | bellard | struct syminfo *next;
|
36 | 49918a75 | pbrook | }; |
37 | 49918a75 | pbrook | |
38 | 49918a75 | pbrook | /* Filled in by elfload.c. Simplistic, but will do for now. */
|
39 | 49918a75 | pbrook | extern struct syminfo *syminfos; |
40 | e80cfcfc | bellard | |
41 | b9adb4a6 | bellard | #endif /* _QEMU_DISAS_H */ |