]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg BmPerf: Handle "/" separator in debug path for GCC build
authorStar Zeng <star.zeng@intel.com>
Wed, 15 Mar 2017 05:39:27 +0000 (13:39 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 16 Mar 2017 03:08:52 +0000 (11:08 +0800)
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c

index 0abd0194409cc2b0b55b4e8f4e591fb4b554b338..4d4495b2a826f0ef1536a262291ffcc7217e69ec 100644 (file)
@@ -3,7 +3,7 @@
   performance, all the function will only include if the performance\r
   switch is set.\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, 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
@@ -49,7 +49,7 @@ BmGetShortPdbFileName (
       ;\r
 \r
     for (Index = 0; PdbFileName[Index] != 0; Index++) {\r
-      if (PdbFileName[Index] == '\\') {\r
+      if ((PdbFileName[Index] == '\\') || (PdbFileName[Index] == '/')) {\r
         StartIndex = Index + 1;\r
       }\r
 \r