Problem remote debbuger - Eclipse CDT

Applications, development tools, FPGA, C, WEB
Post Reply
javat15
Posts: 17
Joined: Thu Nov 03, 2016 12:15 am

Problem remote debbuger - Eclipse CDT

Post by javat15 » Fri Jan 13, 2017 7:15 pm

Hi,

I try to program in C using the remote debbuger but I can't do because the gdbserver doesn't connect. I upload the gdbserver in my RP in folder /root/bin but every time I try to do the remote debbuger in eclipse this message appears in the console:

chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit

root@rp-f0087d:~# chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit
Process /tmp/test created; pid = 2269
Cannot exec /tmp/test: No such file or directory.

Child exited with status 127
No program to debug. GDBserver exiting.
logout

How can I solve this problem?

[b]Relevant Information[/b]
- Ubuntu 16.04.1
- 0.94 ecosystem
- Linaro toolchain 2013.10 ([u]https://launchpad.net/linaro-toolchain-binaries[/u])
- Guide Eclipse Linux ([u]http://wiki.redpitaya.com/index.php?tit ... _for_Linux[/u])
- I can compile the project perfectly
- The program I try to upload is an empty main

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Problem remote debbuger - Eclipse CDT

Post by Nils Roos » Sat Jan 14, 2017 2:58 am

The connection to the gdbserver is working, but the debugger can not start your compiled executable.

Judging from the error message ("Cannot exec /tmp/test: No such file or directory.") it is likely that your executable is not compiled for the right architecture.

The recommended toolchain for 0.94 is linaro 14.11 (see here), and your project needs to be set up with the cross-compiler prefix "arm-linux-gnueabihf-".

javat15
Posts: 17
Joined: Thu Nov 03, 2016 12:15 am

Re: Problem remote debbuger - Eclipse CDT

Post by javat15 » Sat Jan 14, 2017 11:00 am

I tried to download the linaro 14.11 but this link doesn't work and in linaro webpage the most recent version is the toolchain 2013.10.

The cross-compiler is set up correctly.

javat15
Posts: 17
Joined: Thu Nov 03, 2016 12:15 am

Re: Problem remote debbuger - Eclipse CDT

Post by javat15 » Sun Jan 15, 2017 10:31 pm

I find the new version of linaro in this link:

http://releases.linaro.org/components/t ... gnueabihf/

But I can't do the remote debbug. This message appears when I try to do the remote debug:

No source available for "0xb6fd9822"

How can I solve this new problem?

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: Google [Bot] and 85 guests