From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5C0C82095DFF0 for ; Mon, 21 Aug 2017 21:30:49 -0700 (PDT) Received: by mail-oi0-x22b.google.com with SMTP id f11so174663049oic.0 for ; Mon, 21 Aug 2017 21:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u62CqPa5gBzxwUtQqzhJFOL8r+Zod1mnOZdtT139RKQ=; b=oBEwA24Y6L8/mrNbpz2TH4I2na0QKSqmGnrTRv32qS8DNWPh95SXidUUTXOk0pbBmD xMhDHGE2qXl11DOh74Yh0skaaM66RyjLJGh3+O62MU5WESPVHRUCU9esdFSta0yMZhyD ZGwfqyDzgzPBmoiOl95YUn6Ku9pzah/UoR+6LH0p8LODAnpqA6DR96pk3ATqMLe1qhg2 Jqke/mIZNI6Cfcy45yKCQ7zjVd6d2yyvnKt1qmTKpb+ueaWHrwWUzmYbcsRte0Y500i/ 5Kwe3PsLDiT9AKjW9i8qFBVogSlroQ1E0qF9rbcL7f4Ofwn0PIf/TIvUUixILTw8aKBq 0IFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u62CqPa5gBzxwUtQqzhJFOL8r+Zod1mnOZdtT139RKQ=; b=NO8zJuqt8hOTpaokOpIF/3wm6kEceSKNlxbtcwIwgyPJzz5WG9De52AF9rM/ycE9hn 7a+ww/b0b9fTf6XqGtJk2DjRZ1JHE3GiWFRUSVmW29fq/p0hTRIa5mvBDX3sDXUYObvp rPlxqNOyCYWkuPyFiUsd7xKWhjAp32cTcwXzyZY+PEalAgxQ8S3Z5q2nwKvggXTE6fVC eFL3B6REJOfrySTG4T4+0hnTcLi7LOQY0rIL2AuH3Pp0NdgKZ7Q5wG+dHghXlrqpwCKk 7Y+BJfQV93iC/RmDC8MwvEVdzD5Yg8YWyfnl9EVwsAUwoz73fGe/WD22Vo7V3JIGlyVB uoJw== X-Gm-Message-State: AHYfb5iTgSpBRgUwQyQEF7UY64XcjtJKAcuvSOhZoyGBtyl5A1xnKECF b/cZb4kA/tG0iK02ezQKGwf+1tQ9jw== X-Received: by 10.202.87.17 with SMTP id l17mr1668534oib.22.1503376400811; Mon, 21 Aug 2017 21:33:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.20.228 with HTTP; Mon, 21 Aug 2017 21:33:20 -0700 (PDT) In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14D773F19@shsmsx102.ccr.corp.intel.com> References: <4599c7ce.6029.15e0378e7d8.Coremail.winggundum82@163.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D773AE5@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A993B44@shsmsx102.ccr.corp.intel.com> <366ec4de.99cf.15e0423d30b.Coremail.winggundum82@163.com> <4bea58c3.13aa.15e077f5df6.Coremail.winggundum82@163.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D773F19@shsmsx102.ccr.corp.intel.com> From: Matthijs Lavrijsen Date: Tue, 22 Aug 2017 06:33:20 +0200 Message-ID: To: "Gao, Liming" Cc: wang xiaofeng , "edk2-devel@lists.01.org" , "Yao, Jiewen" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: latest basetools build pdb cannot be load by IDA6.95 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2017 04:30:49 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I just compiled GenFw to verify this, and the issue is indeed caused by e4129b0e5897d76885170bec9da996b266f185f9. The problem is not with zeroing debug directories than the CodeView one, but setting the 'unknown' fields of the RSDS entry to zero. These fields are actually a GUID and DWORD respectively: the GUID identifies the PDB to make it possible to verify that a given PDB matches the PE file, and the DWORD is the "age" of the PDB which is simply a helper value that is incremented by 1 by the linker every time the file is remade. Wiping the GUID will cause PDB parsers (such as the MS DIA SDK that IDA and most other tools use) to treat the PDB as a mismatch and refuse to load it. W.r.t. zeroing the unwanted debug directories that were added in VS2015: there is actually a better solution for this than plain wiping for one of the two. It is possible to exclude IMAGE_DEBUG_TYPE_ILTCG (=3D 14) through the undocumented linker flag /NOCOFFGRPINFO. This means the space is saved even in uncompressed images. I'm not aware of any such solution for IMAGE_DEBUG_TYPE_POGO (=3D 13) however, so that will still have to be zeroe= d. On Tue, Aug 22, 2017 at 5:14 AM, Gao, Liming wrote: > Xiaofeng: > Could you help verify the change in GenFw tool? > > You can refer to https://github.com/tianocore/tianocore.github.io/wiki/ > Windows-systems Compile Tools section to compile GenFw tool, and try it. > > Thanks > Liming > From: wang xiaofeng [mailto:winggundum82@163.com] > Sent: Tuesday, August 22, 2017 9:12 AM > To: wang xiaofeng > Cc: Yao, Jiewen ; Gao, Liming ; > edk2-devel@lists.01.org > Subject: Re:Re:Re: [edk2] latest basetools build pdb cannot be load by > IDA6.95 > > Liming, > Do you think we should roll back the change? I am not sure whether > any source level debug tool will have the same issue with pdb information > change. > > > > > =E5=9C=A8 2017-08-21 17:33:30=EF=BC=8C"wang xiaofeng" inggundum82@163.com>> =E5=86=99=E9=81=93=EF=BC=9A > > Liming, > It should be the change that lead to IDA cannot load pdb. I just roll > back to previous GENFW and IDA can load pdb file now. > > > > > > > At 2017-08-21 16:29:55, "Yao, Jiewen" iewen.yao@intel.com>> wrote: > > >FYI: here is IDA https://www.hex-rays.com/products/ida/overview.shtml > > > > > >Thank you > > >Yao Jiewen > > > > > > > > >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org devel-bounces@lists.01.org>] On Behalf Of Gao, Liming > > >Sent: Monday, August 21, 2017 4:17 PM > > >To: wang xiaofeng >; > edk2-devel@lists.01.org > > >Subject: Re: [edk2] latest basetools build pdb cannot be load by IDA6.95 > > > > > >Xiaofeng: > > > What is IDA? What message is required by it? > > > > > > Recently, I make the change in BaseTools to clear the unused field in > DebugEntry to zero. It may impact IDA. Here is the change. Could you help > identify whether this change cause IDA load issue? > > > > > >SHA-1: e4129b0e5897d76885170bec9da996b266f185f9 > > > > > >* BaseTools: Update GenFw to clear unused debug entry generated by VS > tool chain > > > > > >https://bugzilla.tianocore.org/show_bug.cgi?id=3D600 > > > > > >Contributed-under: TianoCore Contribution Agreement 1.0 > > >Signed-off-by: Liming Gao iming.gao@intel.com> ng.gao@intel.com>>> > > >Reviewed-by: Yonghong Zhu yonghong.zhu@intel.com> yonghong.zhu@intel.com>>> > > > > > >Thanks > > >Liming > > >>-----Original Message----- > > >>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org devel-bounces@lists.01.org>] On Behalf Of > > >>wang xiaofeng > > >>Sent: Monday, August 21, 2017 2:27 PM > > >>To: edk2-devel@lists.01.org edk2-devel@lists.01.org> > > >>Subject: [edk2] latest basetools build pdb cannot be load by IDA6.95 > > >> > > >>Hi Basetool owners, > > >> I updated basetool to svn24984 (edk2 mirror )or even latest svn= , > after > > >>build all the x64 efi files fail to load pdb by IDA6.95. It used to wor= k > with > > >>svn23946 revision(near Feb 2017). > > >> Any change may related to this issue? > > >> I have reported bugs to IDA . But since this is a regression > issue of > > >>basetools ,it will be helpful that basetools can also help to debug thi= s > issue. > > >>_______________________________________________ > > >>edk2-devel mailing list > > >>edk2-devel@lists.01.org edk2-devel@lists.01.org> > > >>https://lists.01.org/mailman/listinfo/edk2-devel > > >_______________________________________________ > > >edk2-devel mailing list > > >edk2-devel@lists.01.org edk2-devel@lists.01.org> > > >https://lists.01.org/mailman/listinfo/edk2-devel > > >_______________________________________________ > > >edk2-devel mailing list > > >edk2-devel@lists.01.org > > >https://lists.01.org/mailman/listinfo/edk2-devel > > > > > =E3=80=90=E7=BD=91=E6=98=93=E8=87=AA=E8=90=A5|30=E5=A4=A9=E6=97=A0=E5=BF= =A7=E9=80=80=E8=B4=A7=E3=80=91=E4=B8=8D=E5=88=B0=E5=90=8C=E6=AC=BE1=E6=8A= =98=E4=BB=B7=EF=BC=81Tory Burch=E5=88=B6=E9=80=A0=E5=95=86=E7=BE=8E=E5=BC= =8F=E4=BC=91=E9=97=B2=E4=BA=BA=E5=AD=97=E6=8B=96=E9=99=90=E6=97=B6=E4=BB=85= 29.9=E5=85=83>> ://you.163.com/item/detail?id=3D1185012&from=3Dweb_gg_mail_jiaobiao_9> > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >