Annotation of qemu/disas.h, revision 1.1.1.8

1.1       root        1: #ifndef _QEMU_DISAS_H
                      2: #define _QEMU_DISAS_H
                      3: 
1.1.1.4   root        4: #include "qemu-common.h"
                      5: 
1.1.1.5   root        6: #ifdef NEED_CPU_H
1.1       root        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);
1.1.1.4   root       10: 
1.1.1.8 ! root       11: void monitor_disas(Monitor *mon, CPUArchState *env,
1.1.1.2   root       12:                    target_ulong pc, int nb_insn, int is_physical, int flags);
1.1       root       13: 
                     14: /* Look up symbol for debugging purpose.  Returns "" if unknown. */
                     15: const char *lookup_symbol(target_ulong orig_addr);
1.1.1.5   root       16: #endif
1.1       root       17: 
1.1.1.3   root       18: struct syminfo;
                     19: struct elf32_sym;
                     20: struct elf64_sym;
                     21: 
1.1.1.6   root       22: #if defined(CONFIG_USER_ONLY)
                     23: typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_ulong orig_addr);
                     24: #else
1.1.1.5   root       25: typedef const char *(*lookup_symbol_t)(struct syminfo *s, target_phys_addr_t orig_addr);
1.1.1.6   root       26: #endif
1.1.1.3   root       27: 
                     28: struct syminfo {
                     29:     lookup_symbol_t lookup_symbol;
1.1       root       30:     unsigned int disas_num_syms;
1.1.1.3   root       31:     union {
                     32:       struct elf32_sym *elf32;
                     33:       struct elf64_sym *elf64;
                     34:     } disas_symtab;
1.1       root       35:     const char *disas_strtab;
                     36:     struct syminfo *next;
1.1.1.3   root       37: };
                     38: 
                     39: /* Filled in by elfload.c.  Simplistic, but will do for now. */
                     40: extern struct syminfo *syminfos;
1.1       root       41: 
                     42: #endif /* _QEMU_DISAS_H */

unix.superglobalmegacorp.com