summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-03-15 13:37:45 +0800
committerStar Zeng <star.zeng@intel.com>2017-03-16 11:08:48 +0800
commit9248d551268105342fb43b3de9a9b00ea8c1b3ae (patch)
tree31257ce491135377648a3c7fc1efd20828a35b6f
parent206a1f1fc217f6e0281a48ce0266a075d8a42827 (diff)
downloadedk2-platforms-9248d551268105342fb43b3de9a9b00ea8c1b3ae.tar.xz
ShellPkg UefiDpLib: Handle "/" separator in debug path for GCC build
Cc: Liming Gao <liming.gao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jaben Carsey <jaben.carsey@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> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
-rw-r--r--ShellPkg/Library/UefiDpLib/DpUtilities.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiDpLib/DpUtilities.c b/ShellPkg/Library/UefiDpLib/DpUtilities.c
index 64f1830fcc..c60d27d861 100644
--- a/ShellPkg/Library/UefiDpLib/DpUtilities.c
+++ b/ShellPkg/Library/UefiDpLib/DpUtilities.c
@@ -154,7 +154,7 @@ DpGetShortPdbFileName (
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;
}