summaryrefslogtreecommitdiffstats
path: root/PerformancePkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-03-15 13:36:14 +0800
committerStar Zeng <star.zeng@intel.com>2017-03-16 11:08:44 +0800
commit206a1f1fc217f6e0281a48ce0266a075d8a42827 (patch)
treece0d6c369f48085e6b3dd0d8f18bdba572ce8a7b /PerformancePkg
parent2db48a1ff4e97b084a65690ae8a8d162247e2269 (diff)
downloadedk2-206a1f1fc217f6e0281a48ce0266a075d8a42827.tar.gz
edk2-206a1f1fc217f6e0281a48ce0266a075d8a42827.tar.bz2
edk2-206a1f1fc217f6e0281a48ce0266a075d8a42827.zip
PerformancePkg Dp_App: Handle "/" separator in debug path for GCC build
Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'PerformancePkg')
-rw-r--r--PerformancePkg/Dp_App/DpUtilities.c2
1 files changed, 1 insertions, 1 deletions
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;
}