From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C1401A05D3 for ; Mon, 20 May 2019 20:02:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB7E64C88; Mon, 20 May 2019 20:02:28 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id F408437B7 for ; Mon, 20 May 2019 20:02:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 11:02:23 -0700 X-ExtLoop1: 1 Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by FMSMGA003.fm.intel.com with ESMTP; 20 May 2019 11:02:22 -0700 Received: from orsmsx125.amr.corp.intel.com (10.22.240.125) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 20 May 2019 11:02:22 -0700 Received: from orsmsx112.amr.corp.intel.com ([169.254.3.79]) by ORSMSX125.amr.corp.intel.com ([169.254.3.172]) with mapi id 14.03.0415.000; Mon, 20 May 2019 11:02:22 -0700 From: "Menon, Ranjit" To: Adham Masarwah , "dev@dpdk.org" , "Omar Cardona" , Harini Ramakrishnan , Jeffrey Tippet CC: "Kadam, Pallavi" , Yohad Tor , Rani Sharoni , Tal Shnaiderman , "Richardson, Bruce" Thread-Topic: Generating Debug information in Windows using Clang (PDB files) Thread-Index: AdUO9loa7puxxUrZQC2ToWeDAEdTqgAPRiVg Date: Mon, 20 May 2019 18:02:22 +0000 Message-ID: <7603DC8746F9FC4D82EF0929C467267A736870C2@ORSMSX112.amr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmI0OTFhNWEtNDE3Ni00OWVkLTgyNzgtN2VkZjExMWI3MzE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYUViaWZDQUFxU1JGZ2VOUzdyUWNZNTVZcW9mQXBYQkRRM1FBTGZtaTVDZm9QQ1plNnV5VklxcWFXOUJ3SjJ6ZSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Adham... I don't think we debugged using clang compiled code for Hello world - mainl= y because it was only a "helloworld" application and we didn't quite need a= ny debugging!:-) I found this link: http://blog.llvm.org/2017/08/llvm-on-windows-now-support= s-pdb-debug.html ...which says to use the following: Here are two simple ways to test out this new functionality: 1. Have clang-cl invoke lld automatically clang-cl -fuse-ld=3Dlld -Z7 -MTd hello.cpp 1. Invoke clang-cl and lld separately. clang-cl -c -Z7 -MTd -o hello.obj hello.cpp lld-link -debug hello.obj Can you try it with just the -Z7 option? I'm also adding some persons from Microsoft to this thread, hoping they can= help... +Harini +Omar +Jeffrey ranjit m. From: Adham Masarwah Sent: Monday, May 20, 2019 3:27 AM To: dev@dpdk.org Cc: Menon, Ranjit ; Kadam, Pallavi ; Yohad Tor ; Rani Sharoni ; Tal Shnaiderman ; Richardson, Bruce Subject: Generating Debug information in Windows using Clang (PDB files) Hi, In development we use WinDbg for debugging, so we need to create PDB files = when compiling the DPDK, so we used ``-g`` in the CFLGAS and the PDB files = are being created. But when running the helloworld with WinDbg, we can see only function names= , we can't see code neither variables, we get the following error: "Private= symbols (symbols.pri) are required for locals." We tried to append some flags like -Z7 and -gcodeview, but the compiler ign= ores them. Do you have any idea what we miss here ? What is the debug mechanism is bei= ng used in Windows ? Thanks