mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-22 07:28:36 -07:00
virtual memory access for gdbstub
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@581 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3cf1e035ba
commit
13eb76e091
3 changed files with 152 additions and 49 deletions
10
cpu-all.h
10
cpu-all.h
|
|
@ -473,6 +473,11 @@ int cpu_breakpoint_insert(CPUState *env, uint32_t pc);
|
|||
int cpu_breakpoint_remove(CPUState *env, uint32_t pc);
|
||||
void cpu_single_step(CPUState *env, int enabled);
|
||||
|
||||
/* Return the physical page corresponding to a virtual one. Use it
|
||||
only for debugging because no protection checks are done. Return -1
|
||||
if no page found. */
|
||||
target_ulong cpu_get_phys_page_debug(CPUState *env, target_ulong addr);
|
||||
|
||||
#define CPU_LOG_ALL 1
|
||||
void cpu_set_log(int log_flags);
|
||||
void cpu_set_log_filename(const char *filename);
|
||||
|
|
@ -515,6 +520,11 @@ int cpu_register_io_memory(int io_index,
|
|||
CPUReadMemoryFunc **mem_read,
|
||||
CPUWriteMemoryFunc **mem_write);
|
||||
|
||||
void cpu_physical_memory_rw(CPUState *env, uint8_t *buf, target_ulong addr,
|
||||
int len, int is_write);
|
||||
int cpu_memory_rw_debug(CPUState *env,
|
||||
uint8_t *buf, target_ulong addr, int len, int is_write);
|
||||
|
||||
/* gdb stub API */
|
||||
extern int gdbstub_fd;
|
||||
CPUState *cpu_gdbstub_get_env(void *opaque);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue