From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 D51218034C for ; Wed, 15 Mar 2017 02:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489569752; x=1521105752; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vkc50LgOi31VMNLuWhazDblVZAolxKi2tv6UKsE/KD4=; b=vf39jFohDt4J3k5yYwTN+OPdhn8CLgTiLdUE6R1mvZ36z5BRvgsWJ2+/ 7vcBFmb5S18QljxeVBiDRW9GN9znUA==; Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2017 02:22:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,168,1486454400"; d="scan'208";a="834847406" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 15 Mar 2017 02:22:32 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 02:22:32 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 02:22:31 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.59]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Wed, 15 Mar 2017 17:22:29 +0800 From: "Ni, Ruiyu" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Carsey, Jaben" Thread-Topic: [PATCH 2/3] ShellPkg UefiDpLib: Handle "/" separator in debug path for GCC build Thread-Index: AQHSnVAV72PqJIEi60SlvIQdnXIcvaGVoIDw Date: Wed, 15 Mar 2017 09:22:27 +0000 Deferred-Delivery: Wed, 15 Mar 2017 09:22:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B8CA5C5@SHSMSX104.ccr.corp.intel.com> References: <1489557032-4064-1-git-send-email-star.zeng@intel.com> <1489557032-4064-3-git-send-email-star.zeng@intel.com> In-Reply-To: <1489557032-4064-3-git-send-email-star.zeng@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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 09:22:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Zeng, Star > Sent: Wednesday, March 15, 2017 1:51 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Gao, Liming ; > Ni, Ruiyu ; Carsey, Jaben > Subject: [PATCH 2/3] ShellPkg UefiDpLib: Handle "/" separator in debug pa= th > for GCC build >=20 > 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(-) >=20 > 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 =3D 0; PdbFileName[EndIndex] !=3D 0; EndIndex++) > ; > for (IndexA =3D 0; PdbFileName[IndexA] !=3D 0; IndexA++) { > - if (PdbFileName[IndexA] =3D=3D '\\') { > + if ((PdbFileName[IndexA] =3D=3D '\\') || (PdbFileName[IndexA] =3D= =3D '/')) { > StartIndex =3D IndexA + 1; > } >=20 > -- > 2.7.0.windows.1