[5746] Introduce BP_CPU as a breakpoint type (Jan Kiszka)
Revision: 5746
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5746 Author: aliguori Date: 2008-11-18 20:56:59 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Introduce BP_CPU as a breakpoint type (Jan Kiszka)
Add another breakpoint/watchpoint type to BP_GDB: BP_CPU. This type is intended for hardware-assisted break/watchpoint emulations like the x86 architecture requires.
To keep the highest priority for BP_GDB breakpoints, this type is always inserted at the head of break/watchpoint lists, thus is found first when looking up the origin of a debug interruption.
Signed-off-by Jan Kiszka <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/cpu-all.h
trunk/exec.c
Modified: trunk/cpu-all.h
===================================================================
cpu-all.h +1 -0
@@ -768,6 +768,7 @@#define BP_STOP_BEFORE_ACCESS 0x04#define BP_WATCHPOINT_HIT 0x08#define BP_GDB 0x10 +#define BP_CPU 0x20int cpu_breakpoint_insert (CPUState *env,target_ulong pc,int flags,CPUBreakpoint **breakpoint);
Modified: trunk/exec.c
===================================================================
exec.c +38 -8
74 lines not on this page · raw message