CDT Remote Debugging/Launching [message #1749860] |
Tue, 13 December 2016 04:42  |
Eclipse User |
|
|
|
Hi everyone,
I'm trying to remote debug (or at least run for a start) C/C++ programs on a target machine. My current attempt is to use "GDB (DSF) Automatic Remote Debugging via TCF/TE Launcher". While this works with Eclipse Luna, it fails on Eclipse Neon when I specify "Commands to execute before application" (which I need to do to make the transferred binary executable) with the following message:
Failed to create script with the Commands before launch in 'C:/Users/ipc/runtime-EclipseApplication/.metadata/.plugins/org.eclipse.tcf.te.tcf.launch.cdt/prerun_temp_scripts/10-31-14-366_ttp.sh'. Possibly caused by: Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
I'm a bit surprised I seem to be the only one with this problem. At least I haven't found any information on it. Any ideas?
Another attempt I tried before was using the normal GDB Automatic Debugging Launcher (no TCF). While this works on my Raspberry Pi as the target machine, it fails on the actual the device I need to run stuff on (Yocto Linux on an Intel Galileo Board). The file is uploaded correctly but when changing the file permissions afterwards, things go wrong again:
Error during file upload.
Failed to change file permissions in the remote system, path: /home/root/ttp
Failed to change file permissions in the remote system, path: /home/root/ttp
Failed to change file permissions in the remote system, path: /home/root/ttp
Both RPi and the Yocto Board are running the same OpenSSH server. What else could be a reason for this?
Thank you!
Martin
|
|
|
|
|
|
|
|
|
|
|
|
Re: CDT Remote Debugging/Launching [message #1770900 is a reply to message #1749860] |
Fri, 18 August 2017 10:40  |
Eclipse User |
|
|
|
Hello Martin,
I also see this problems in Eclipse Neon. I get the error only when I specify a user in the "Launch as a remote user" field.
Failed to create script with the Commands before launch in '/home/ocp/workspace/.metadata/.plugins/org.eclipse.tcf.te.tcf.launch.cdt/prerun_temp_scripts/09-40-14-445_myapp_test_d.sh'. Possibly caused by: Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
Failed to read the Commands before launch script template 'null'.
If I understood you correctly then you solved the problem by downloading the tcf source and compiling by yourself. How did you compile the source? I tried to compile it using maven but could not.
Thanks,
/Habib
|
|
|
Powered by
FUDForum. Page generated in 0.03541 seconds