bitkeeper revision 1.939.1.1 (40c5aa32hbEqDyGf0-BJufIsvBNHsg)
authorach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Tue, 8 Jun 2004 11:59:46 +0000 (11:59 +0000)
committerach61@labyrinth.cl.cam.ac.uk <ach61@labyrinth.cl.cam.ac.uk>
Tue, 8 Jun 2004 11:59:46 +0000 (11:59 +0000)
do_int3: only call  pdb_handle_exception if pdb_initialized

xen/arch/i386/traps.c

index d30c324804c81926b3e59fbcd613f8b6eea8e287..d798477a3841ebdc2195ab97e66f1601c6928564 100644 (file)
@@ -252,7 +252,7 @@ asmlinkage void do_int3(struct pt_regs *regs, long error_code)
     struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id();
     trap_info_t *ti;
 
-    if ( pdb_handle_exception(3, regs) == 0 )
+    if ( pdb_initialized && pdb_handle_exception(3, regs) == 0 )
         return;
     if ( (regs->xcs & 3) != 3 )
     {
@@ -377,7 +377,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, long error_code)
 #endif
     }
 
-    if (pdb_page_fault_possible)
+    if (pdb_page_fault_possible)                 /* implicit pdb_initialized */
     {
         pdb_page_fault = 1;
        /* make eax & edx valid to complete the instruction */