Skip to contentSkip to conversation

[5746] Introduce BP_CPU as a breakpoint type (Jan Kiszka)

Qemu-devel Anthony Liguori 1 participant 1 message Nov 18, 2008

lore
Share & tools
lore
#0 lore raw

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.

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                0x20
 
 int 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