Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote debug embedded linux angstrom board(Remote debug embedded linux angstrom board)
Remote debug embedded linux angstrom board [message #730303] Wed, 28 September 2011 06:43 Go to next message
schliz11 is currently offline schliz11Friend
Messages: 6
Registered: September 2011
Junior Member
I hope you can help me and give me a hint.
I work with Eclipse Version: 3.7.0 CDT version: 1.0.0.201109151620.
I try to debug an embedded linux board running Angstrom. The board has access to the network, I can do ssh etc.

I created a C++ Project and compiled with Sourcery_G++_Lite. I can copy the binary to the board and run the application. But now I want to remote debug and I am not able to.

What I did:

Host Ubuntu PC: 192.168.0.140
Target Angstrom panel: 192.168.0.51

I downloaded the gdbserver using the package manager opkg.
I manually copied the compiled debug version of my test application onto my board /home/myTest.

I started the server:
> gdbserver 192.168.0.140:2345 /home/myTest
-- it is listening

In Eclipse I created a new debug configuration:
Debug Configurations / C C++ Remote Application / New

At the debugger I set the gdb of Sourcery_G++_Lite:
/home/georg/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gdb

I set the connection to my target:
192.168.0.51 Port 2345

As soon Eclipse connects I get an error saying:

Error in final launch sequence
Failed to execute MI command:
-target-select remote 192.168.0.51:2345
Error message from debugger back end:
Malformed packet(b) (missing colon): ore:0;
Packet: 'T050b:00000000;0d:d0ddb6be;0f:f0070040;thread:fde;core:0;'

Malformed packet(b) (missing colon): ore:0;
Packet: 'T050b:00000000;0d:d0ddb6be;0f:f0070040;thread:fde;core:0;'

The connection seems to be ok.

I am not quite sure if it is correct to copy the debugged binary manually onto the board and start the server. As well I am not sure about the settings in Eclipse.

I attached my project. It won't work because I use libs from Sourcery and one own. It is just a test application. But you could check the project settings and tell me my mistakes.

I can't find any tutorial where it is described step by step.

Thank you very much in advance - have a good day.
Georg
Re: Remote debug embedded linux angstrom board [message #730349 is a reply to message #730303] Wed, 28 September 2011 08:19 Go to previous message
schliz11 is currently offline schliz11Friend
Messages: 6
Registered: September 2011
Junior Member
Found the solution!
I have used a different gdb version to the gdbserver.
After I installed the same version as gdb has it worked.
So I assume you need a pair having the same version.

Georg
Previous Topic:C++ plugin lost
Next Topic:Very Basic C question
Goto Forum:
  


Current Time: Wed Apr 24 13:38:11 GMT 2024

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

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

Back to the top