From 206a1f1fc217f6e0281a48ce0266a075d8a42827 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Wed, 15 Mar 2017 13:36:14 +0800 Subject: [PATCH] PerformancePkg Dp_App: Handle "/" separator in debug path for GCC build Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao --- PerformancePkg/Dp_App/DpUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index d5840e8d6f..d3a9b6eab3 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -169,7 +169,7 @@ GetShortPdbFileName ( for (EndIndex = 0; PdbFileName[EndIndex] != 0; EndIndex++) ; for (IndexA = 0; PdbFileName[IndexA] != 0; IndexA++) { - if (PdbFileName[IndexA] == '\\') { + if ((PdbFileName[IndexA] == '\\') || (PdbFileName[IndexA] == '/')) { StartIndex = IndexA + 1; }