qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] single step not working after hit a break point


From: Peter Cheung
Subject: [Qemu-devel] single step not working after hit a break point
Date: Fri, 15 Feb 2013 00:06:44 +0800

Hi All


    I use the following code to insert a breakpoint in physical address 0×1600000

CPUArchState *cpu = first_cpu;
hwaddr addr;
sscanf(command + 2, "%ld", &addr);
int err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL );

qemu successfully hit the breakpoint and stop, then i try to single-step by the following code:

CPUArchState *cpu = first_cpu;
cpu_single_step(cpu, sstep_flags);
vm_start();

Nothing happened, the EIP still stay in 0×1600000, but if i delete the breakpoint, the single step just work again. Am I missed something? 


thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]