From f5fb7ea6ec5daff0ccf649c34f76deca5ba49982 Mon Sep 17 00:00:00 2001 From: Trivalik_cp <42497cfff885d3ca0e6fda54fb6262dd42101bd5sx56jUzf> Date: Tue, 19 Jul 2011 20:41:28 +0000 Subject: [PATCH] remove int3 from idt if no source debug activated --- source2/IL2CPU/Cosmos.IL2CPU.X86/CosmosAssembler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source2/IL2CPU/Cosmos.IL2CPU.X86/CosmosAssembler.cs b/source2/IL2CPU/Cosmos.IL2CPU.X86/CosmosAssembler.cs index f86f9f0eb..0b83014b4 100644 --- a/source2/IL2CPU/Cosmos.IL2CPU.X86/CosmosAssembler.cs +++ b/source2/IL2CPU/Cosmos.IL2CPU.X86/CosmosAssembler.cs @@ -160,7 +160,9 @@ namespace Cosmos.IL2CPU.X86 { DataMembers.Add(new DataMember("_NATIVE_IDT_Contents", new byte[xIdtSize])); // //SetIdtDescriptor(1, "DebugStub_INT0"); - SetIdtDescriptor(3, "DebugStub_TracerEntry", false); + if (mComNumber > 0) { + SetIdtDescriptor(3, "DebugStub_TracerEntry", false); + } //SetIdtDescriptor(1, "DebugStub_INT0"); - Change to GPF // Set IDT