Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot debug C remote application - Solved
Cannot debug C remote application - Solved [message #726673] Mon, 19 September 2011 04:46 Go to next message
Eclipse UserFriend
Hello,

I have troubles debugging a C applications:
My remote application is running on ARM7 linux powered embedded device.
I tried this:
1. build application in Debug mode on my Linux PC using arm toolchain
2. copied it into the embedded device
3. Launched gdbserver and application on the embedded device (./gdbserver :1234 myApplication)
4. Created a Debug configuration in Eclipse (C/C++ Attach to Application)
with specifying gdb for ARM, IP address and port (1234) number of the listening gdbserver
5. Launched the debugger (the gdbserver confirms connection on the embedded device) and got "No sources available for "Ox40003cbc" in the debug view.
6. When I push start/continue button, the application doesn't stop at break point (main) but exits.

The application just does printf("Hello World!!!\n");

Any idea how can I debug it?

Note: I am able to debug it using, for example, ddd frontend or just lauching
gdb
and then "target remote <ip address>:1234"
But no luck from Eclipse.

Thanks,
Ed

[Updated on: Mon, 19 September 2011 08:28] by Moderator

Re: Cannot debug C remote application [message #726718 is a reply to message #726673] Mon, 19 September 2011 06:48 Go to previous messageGo to next message
Eclipse UserFriend
Here is a tutorial for remote debugging.
http://www.embedded-linux.co.uk/tutorial/eclipse-rse

With the Remote plugin you can automatically upload your application, start gdbserver on the target and gdb locally.
Re: Cannot debug C remote application [message #726733 is a reply to message #726718] Mon, 19 September 2011 07:47 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your quick reply.

I have dropbear on my target but not sftp.
I am able either to copy files using scp or by mounting directory on the target through nfs.

Is it possible to use scp instead of sftp?
Eclipse gives me error if it doesn't find the sftp.

Thanks,
Ed
Re: Cannot debug C remote application [message #726746 is a reply to message #726733] Mon, 19 September 2011 08:27 Go to previous messageGo to next message
Eclipse UserFriend
Finally I managed to compile openssh for my target and get the sftp-server as stated in the link, and now it works just fine!

Thanks for your help
Re: Cannot debug C remote application [message #726988 is a reply to message #726746] Tue, 20 September 2011 02:20 Go to previous messageGo to next message
Eclipse UserFriend
The latest release of the Target Management supports scp out of the box.
http://www.eclipse.org/tm/development/relnotes/3.3/tm-news-3.3.html
Re: Cannot debug C remote application [message #727427 is a reply to message #726988] Wed, 21 September 2011 05:30 Go to previous message
Eclipse UserFriend
Thanks.

I'll give it a try.

Edouard
Previous Topic:disable rebuild of project references
Next Topic:External settings gone
Goto Forum:
  


Current Time: Fri Jul 18 04:41:48 EDT 2025

Powered by FUDForum. Page generated in 0.10309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top