diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-26 18:23:18 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:20:47 +0100 |
commit | ff4700b05cfb305a880762c288b88ca01c782352 (patch) | |
tree | 52b073985fe082c98a9eb42c628810f588da0fc1 /gdbstub.c | |
parent | 0429a9719551a4aa794051aeb8c7b42658902c27 (diff) | |
download | qemu-ff4700b05cfb305a880762c288b88ca01c782352.tar.gz qemu-ff4700b05cfb305a880762c288b88ca01c782352.tar.bz2 qemu-ff4700b05cfb305a880762c288b88ca01c782352.zip |
cpu: Move watchpoint fields from CPU_COMMON to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1204,8 +1204,8 @@ static void gdb_vm_state_change(void *opaque, int running, RunState state) } switch (state) { case RUN_STATE_DEBUG: - if (env->watchpoint_hit) { - switch (env->watchpoint_hit->flags & BP_MEM_ACCESS) { + if (cpu->watchpoint_hit) { + switch (cpu->watchpoint_hit->flags & BP_MEM_ACCESS) { case BP_MEM_READ: type = "r"; break; @@ -1219,8 +1219,8 @@ static void gdb_vm_state_change(void *opaque, int running, RunState state) snprintf(buf, sizeof(buf), "T%02xthread:%02x;%swatch:" TARGET_FMT_lx ";", GDB_SIGNAL_TRAP, cpu_index(cpu), type, - env->watchpoint_hit->vaddr); - env->watchpoint_hit = NULL; + (target_ulong)cpu->watchpoint_hit->vaddr); + cpu->watchpoint_hit = NULL; goto send_packet; } tb_flush(env); |