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