Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

Eclipse Remote Debugging

$
0
0

I am following the instructions to get native remote debugging working in Eclipse.  I've had to modifiy them a bit because I am using MPSS 2.1 and the instructions are for ComposerXE.  A quick summary:

  1. Successfully setup a remote system connection to mic0 (steps 1 & 2 in the guide).
  2. Transfer gdbserver by running
    scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/ mic0:/tmp/gdbserver

    As noted in the instructions for this section, I had to modify this command to use the gdbserver provided by MPSS, which if found further up in the instructions.

  3. Setup Eclipse debugging profile.  The only change I made from the instructions (aside from specifying my app) is setting the GDB debugger (under Debugger -> Main) to /opt/intel/mic/bin/gdb, where /opt/intel/mic is the root directory of my MPSS 2.1 installation.

Running the debug profile, the executable gets copied to the MIC and gdbserver starts running (on the MIC), but Eclipse gives the following error:

Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols /hpc/shared/home/rjlewis/git/MicSensor/Release/MicSensor
Error message from debugger back end:
Architecture of file not recognized.
Architecture of file not recognized.

A quick google search on the phrase "Architecture of file not recognized." lead to this StackOverflow which states: "this happens if the gdb client ( inside eclipse ) is not compiled for the same architecture as the gdb server. setting the correct gdb in eclipse debugging solved this issue"

Is it possible I'm using the wrong version of GDB in Eclipse?  Any help/tips/pointers would be greatly appreaciated.


Viewing all articles
Browse latest Browse all 1347


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>