First, I have integrated the relevant oneapi debugger toolkit into eclipse.
Then I created a c++ project and built it, configured its Debugger Configurations
then i choose gdb-oneapi C/C++ Remote Application
then i click Select other...
then i click Dubugger to settings
then i settings Connection
then i use xshell to start a gdbserver
then i click Apply and Debug from eclipse
but its error
then I followed the prompts and configured the share libraries
But it still says error
so i dont know how to solve it
Eclipse IDE Version: 2021-03 (4.19.0)
oneapi debugger: 2021.6.0
Server: linux (i use x11 to start a eclipse)
Seems like libipt.so.2.* is missing.
If you call, gdb-oneapi from the command line, does it work?
$ gdb-oneapi a.out
GNU gdb (Intel(R) Distribution for GDB* 2022.2) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.; (C) 2022 Intel Corp.
Reading symbols from a.out...
According to the Release Notes, only Eclipse 4.20 and 4.21 are supported.
Can you update your Eclipse to 4.20 or 4.21 and give it another try?
Thank you for your reply, but what I want to know is that I am using Centos 8.3 with the oneapi toolkit installed, will it also affect me to use the DPC++ Compiler in the oneapi toolkit? Since the URL you gave is titled "Intel® oneAPI DPC++/C++ Compiler System Requirements", do I need to change my OS to use these?
Thank you very much for the heads up,
I thought I only needed to source /opt/intel/oneapi/setvars.sh on the server where I started gdbserver.
I didn't source setvars.sh before starting eclipse.
Now I source /opt/intel/oneapi/setvars.sh before starting eclipse, and it works fine for debugging.
I am not too familiar with eclipse, so I would like to know if I can set source /opt/intel/oneapi/setvars.sh in eclipse instead of going to source /opt/intel/oneapi/setvars.sh on the command line in the background.