/** @file\r
PE/Coff Extra Action library instances.\r
\r
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
IA32_DESCRIPTOR IdtDescriptor;\r
IA32_IDT_GATE_DESCRIPTOR OriginalIdtEntry;\r
BOOLEAN IdtEntryHooked;\r
+ UINT32 RegEdx;\r
\r
ASSERT (ImageContext != NULL);\r
\r
\r
IdtEntryHooked = FALSE;\r
LoadImageMethod = PcdGet8 (PcdDebugLoadImageMethod);\r
+ if (LoadImageMethod == DEBUG_LOAD_IMAGE_METHOD_IO_HW_BREAKPOINT) {\r
+ //\r
+ // If the CPU does not support Debug Extensions(CPUID:01 EDX:BIT2)\r
+ // then force use of DEBUG_LOAD_IMAGE_METHOD_SOFT_INT3 \r
+ //\r
+ AsmCpuid (1, NULL, NULL, NULL, &RegEdx);\r
+ if ((RegEdx & BIT2) == 0) {\r
+ LoadImageMethod = DEBUG_LOAD_IMAGE_METHOD_SOFT_INT3;\r
+ }\r
+ }\r
AsmReadIdtr (&IdtDescriptor);\r
if (LoadImageMethod == DEBUG_LOAD_IMAGE_METHOD_SOFT_INT3) {\r
if (!CheckDebugAgentHandler (&IdtDescriptor, SOFT_INT_VECTOR_NUM)) {\r
## @file\r
# PeCoffExtraAction Library to support source level debug.\r
#\r
-# Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
MODULE_UNI_FILE = PeCoffExtraActionLib.uni\r
FILE_GUID = 8F01CBD5-E069-44d7-90C9-35F0318603AD\r
MODULE_TYPE = BASE\r
- VERSION_STRING = 0.7\r
+ VERSION_STRING = 0.8\r
LIBRARY_CLASS = PeCoffExtraActionLib\r
\r
#\r