ia64/xen-unstable
changeset 1440:9ca65dc5f7af
bitkeeper revision 1.939.1.1 (40c5aa32hbEqDyGf0-BJufIsvBNHsg)
do_int3: only call pdb_handle_exception if pdb_initialized
do_int3: only call pdb_handle_exception if pdb_initialized
author | ach61@labyrinth.cl.cam.ac.uk |
---|---|
date | Tue Jun 08 11:59:46 2004 +0000 (2004-06-08) |
parents | 64c28f73f702 |
children | 089bd7abf02e |
files | xen/arch/i386/traps.c |
line diff
1.1 --- a/xen/arch/i386/traps.c Tue Jun 08 10:00:47 2004 +0000 1.2 +++ b/xen/arch/i386/traps.c Tue Jun 08 11:59:46 2004 +0000 1.3 @@ -252,7 +252,7 @@ asmlinkage void do_int3(struct pt_regs * 1.4 struct guest_trap_bounce *gtb = guest_trap_bounce+smp_processor_id(); 1.5 trap_info_t *ti; 1.6 1.7 - if ( pdb_handle_exception(3, regs) == 0 ) 1.8 + if ( pdb_initialized && pdb_handle_exception(3, regs) == 0 ) 1.9 return; 1.10 if ( (regs->xcs & 3) != 3 ) 1.11 { 1.12 @@ -377,7 +377,7 @@ asmlinkage void do_page_fault(struct pt_ 1.13 #endif 1.14 } 1.15 1.16 - if (pdb_page_fault_possible) 1.17 + if (pdb_page_fault_possible) /* implicit pdb_initialized */ 1.18 { 1.19 pdb_page_fault = 1; 1.20 /* make eax & edx valid to complete the instruction */