]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugMp.c
Set the current view point to the breaking CPU if it meets breakpoint.
[mirror_edk2.git] / SourceLevelDebugPkg / Library / DebugAgent / DebugAgentCommon / DebugMp.c
index 7d053fadc0144e8eaee0dac5d56ba5073244e7ce..577c6f54c66552576e1c54dfd85e1adecea13ee0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Multi-Processor support functions implementation.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2011, 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
@@ -108,6 +108,11 @@ HaltOtherProcessors (
 \r
   mDebugMpContext.BreakAtCpuIndex = CurrentProcessorIndex;\r
 \r
+  //\r
+  // Set the debug viewpoint to the current breaking CPU.\r
+  //\r
+  SetDebugViewPoint (CurrentProcessorIndex);\r
+\r
   //\r
   // Send fixed IPI to other processors.\r
   //\r