- the new code I added in patch.triple-fault-recover needed to be

conditional on BX_DEBUGGER==1.
This commit is contained in:
Bryce Denney 2002-03-12 18:59:31 +00:00
parent 6c4a3581c7
commit 7a6b013101
1 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// $Id: exception.cc,v 1.10 2002-03-12 09:16:41 bdenney Exp $ // $Id: exception.cc,v 1.11 2002-03-12 18:59:31 bdenney Exp $
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2001 MandrakeSoft S.A. // Copyright (C) 2001 MandrakeSoft S.A.
@ -55,6 +55,10 @@ BX_CPU_C::interrupt(Bit8u vector, Boolean is_INT, Boolean is_error_code,
Bit16u error_code) Bit16u error_code)
{ {
#if BX_DEBUGGER #if BX_DEBUGGER
if (bx_guard.special_unwind_stack) {
BX_INFO (("interrupt() returning early because special_unwind_stack is set"));
return;
}
BX_CPU_THIS_PTR show_flag |= Flag_intsig; BX_CPU_THIS_PTR show_flag |= Flag_intsig;
#if BX_DEBUG_LINUX #if BX_DEBUG_LINUX
if (bx_dbg.linux_syscall) { if (bx_dbg.linux_syscall) {
@ -63,10 +67,6 @@ BX_CPU_C::interrupt(Bit8u vector, Boolean is_INT, Boolean is_error_code,
#endif #endif
#endif #endif
if (bx_guard.special_unwind_stack) {
BX_INFO (("interrupt() returning early because special_unwind_stack is set"));
return;
}
//BX_DEBUG(( "::interrupt(%u)", vector )); //BX_DEBUG(( "::interrupt(%u)", vector ));
BX_INSTR_INTERRUPT(vector); BX_INSTR_INTERRUPT(vector);
@ -576,10 +576,12 @@ BX_CPU_C::exception(unsigned vector, Bit16u error_code, Boolean is_INT)
Bit8u exception_type; Bit8u exception_type;
unsigned prev_errno; unsigned prev_errno;
#if BX_DEBUGGER
if (bx_guard.special_unwind_stack) { if (bx_guard.special_unwind_stack) {
BX_INFO (("exception() returning early because special_unwind_stack is set")); BX_INFO (("exception() returning early because special_unwind_stack is set"));
return; return;
} }
#endif
//BX_DEBUG(( "::exception(%u)", vector )); //BX_DEBUG(( "::exception(%u)", vector ));