From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 8B24CA05D3
	for <public@inbox.dpdk.org>; Tue, 21 May 2019 10:22:20 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id EFE034C96;
	Tue, 21 May 2019 10:22:18 +0200 (CEST)
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by dpdk.org (Postfix) with ESMTP id EAAE74C88
 for <dev@dpdk.org>; Tue, 21 May 2019 10:22:16 +0200 (CEST)
X-Amp-Result: UNKNOWN
X-Amp-Original-Verdict: FILE UNKNOWN
X-Amp-File-Uploaded: False
Received: from fmsmga002.fm.intel.com ([10.253.24.26])
 by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 21 May 2019 01:22:15 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.60,494,1549958400"; d="scan'208";a="173936355"
Received: from bricha3-mobl.ger.corp.intel.com ([10.252.21.225])
 by fmsmga002.fm.intel.com with SMTP; 21 May 2019 01:22:13 -0700
Received: by  (sSMTP sendmail emulation); Tue, 21 May 2019 09:22:12 +0100
Date: Tue, 21 May 2019 09:22:12 +0100
From: Bruce Richardson <bruce.richardson@intel.com>
To: "Menon, Ranjit" <ranjit.menon@intel.com>
Cc: Adham Masarwah <adham@mellanox.com>, "dev@dpdk.org" <dev@dpdk.org>,
 Omar Cardona <ocardona@microsoft.com>,
 Harini Ramakrishnan <Harini.Ramakrishnan@microsoft.com>,
 Jeffrey Tippet <Jeffrey.Tippet@microsoft.com>,
 "Kadam, Pallavi" <pallavi.kadam@intel.com>,
 Yohad Tor <yohadt@mellanox.com>, Rani Sharoni <ranish@mellanox.com>,
 Tal Shnaiderman <talshn@mellanox.com>
Message-ID: <20190521082211.GA1354@bricha3-MOBL.ger.corp.intel.com>
References: <VI1PR05MB5821B2BC448F6CE9A190AE58C4060@VI1PR05MB5821.eurprd05.prod.outlook.com>
 <7603DC8746F9FC4D82EF0929C467267A736870C2@ORSMSX112.amr.corp.intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <7603DC8746F9FC4D82EF0929C467267A736870C2@ORSMSX112.amr.corp.intel.com>
User-Agent: Mutt/1.11.4 (2019-03-13)
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

On Mon, May 20, 2019 at 07:02:22PM +0100, Menon, Ranjit wrote:
>    Adham…
> 
>    I don’t think we debugged using clang compiled code for Hello world –
>    mainly because it was only a “helloworld” application and we didn’t
>    quite need any debugging!:-)
> 
> 
>    I found this link:
>    [1]http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-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=lld -Z7 -MTd hello.cpp
>     2. 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.
> 
Part of the issue may be that we use clang, rather than clang-cl on
windows.

/Bruce