Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Debugging with intel oneAPI on Windows: How can I reproduce this procedure?

Kdan
Beginner
949 Views

On linux, I debug with the following steps:

    icx main.c -o myprogram -debug -O0
    gdb-oneapi myprogram

 

I have tried this procedure on windows

    icx.exe main.c -o myprogram.exe /debug /Z7

    gdb-oneapi.exe myprogram.exe

 

But it says "no symbols loaded". Is there a way I can use gdb-oneapi on windows, on a binary compiled with icl.exe or icx.exe?

 

0 Kudos
5 Replies
SeshaP_Intel
Moderator
871 Views

Hi,


Thank you for posting in Intel Communities.

We were able to reproduce your issue. We are working on this internally.

We will get back to you soon.


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
SeshaP_Intel
Moderator
850 Views

Hi,

 

We suggest you use the Visual Studio debugger to debug the C/C++ applications.

On the Windows platform, the Intel C/C++ compiler is compatible with the Microsoft toolchain. Please refer to the below link.

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-1/microsoft-compatibility.html 

 

And thus emits debugging information in a format compatible with Visual Studio and the VS debugger. This format is not supported by gdb-oneapi.

 

On Windows, gdb-oneapi provides Visual Studio integration that supports debugging of code offloaded to a GPU. Please refer to the below link.

https://www.intel.com/content/www/us/en/docs/oneapi/user-guide-vs-code/2023-1/gdb-gpu-support-for-intel-oneapi-toolkits.html

 

You can refer to the below links for more information.

https://www.intel.com/content/www/us/en/docs/distribution-for-gdb/get-started-guide-windows/2023-1/overview.html

https://www.intel.com/content/www/us/en/docs/distribution-for-gdb/tutorial-debugging-dpcpp-windows/2023-1/overview.html 

 

Thanks and Regards,

Pendyala Sesha Srinivas

0 Kudos
SeshaP_Intel
Moderator
767 Views

Hi,


Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Kdan
Beginner
747 Views

Hi,

Yes. This information was very helpful. The thread can be closed.

Thanks

0 Kudos
SeshaP_Intel
Moderator
706 Views

Hi,


Thanks for the confirmation. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Reply