Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-06-04 Thread Thomas Monjalon
21/05/2019 16:33, Adham Masarwah: > From: Bruce Richardson > > Yes, the clang-cl compiler (like msvc) does not offer the flags we need to > > control the exact output microarchitecture. It also uses completely > > different flag formats for things like warnings etc, which is why we need > > to

Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-21 Thread Adham Masarwah
On Tue, May 21, 2019 at 01:41:06PM +, Adham Masarwah wrote: > > > > >From: Bruce Richardson > > >Sent: Tuesday, May 21, 2019 11:22 AM > > > > > >On Mon, May 20, 2019 at 07:02:22PM +0100, Menon, Ranjit wrote: > > >>Adham… > > >> > > >>I don’t think we debugged using clang compiled cod

Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-21 Thread Bruce Richardson
On Tue, May 21, 2019 at 01:41:06PM +, Adham Masarwah wrote: > > >From: Bruce Richardson > >Sent: Tuesday, May 21, 2019 11:22 AM > > > >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 wor

Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-21 Thread Adham Masarwah
>From: Bruce Richardson >Sent: Tuesday, May 21, 2019 11:22 AM > >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 >

Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-21 Thread Bruce Richardson
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]h

Re: [dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-20 Thread Menon, Ranjit
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: http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-pdb-debug.html ...which says to use the fo

[dpdk-dev] Generating Debug information in Windows using Clang (PDB files)

2019-05-20 Thread Adham Masarwah
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 t