From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0C6BD803F3 for ; Tue, 14 Mar 2017 22:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489557038; x=1521093038; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=5GkRy978L4psrTa64ZWHY+wBaO2IUk+GhSvXerOHIpg=; b=B6zysPb9L24VDxJkSsyxO2dk4vSsWYgczOBELVS7gNjZzdX4HtaZVAF7 gigagXofHp58fPDgLTC+3s++xO/1Nw==; Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2017 22:50:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,167,1486454400"; d="scan'208";a="944438468" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.22]) by orsmga003.jf.intel.com with ESMTP; 14 Mar 2017 22:50:37 -0700 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Liming Gao , Ruiyu Ni , Jaben Carsey Date: Wed, 15 Mar 2017 13:50:31 +0800 Message-Id: <1489557032-4064-3-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1489557032-4064-1-git-send-email-star.zeng@intel.com> References: <1489557032-4064-1-git-send-email-star.zeng@intel.com> Subject: [PATCH 2/3] ShellPkg UefiDpLib: Handle "/" separator in debug path for GCC build X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 05:50:39 -0000 Cc: Liming Gao Cc: Ruiyu Ni Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- ShellPkg/Library/UefiDpLib/DpUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiDpLib/DpUtilities.c b/ShellPkg/Library/UefiDpLib/DpUtilities.c index 64f1830fcc92..c60d27d8613f 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; } -- 2.7.0.windows.1