|debugging on (embedded) remote target [message #775620]
||Fri, 06 January 2012 06:30
| Jan Pohanka
Registered: June 2011
I'm developing an application in C/C++ for embedded Linux and I want to debug it using gdbserver. As I understand, there is several possibilities how to do that.
I can copy the executable to the target manually and run the "gdbserver :port application" on remote target using system terminal outside of the eclipse and then connect it with the eclipse debugger. This works fine (when I use standard create process launcher) - I can see the program output on the console and use debug perspective in eclipse. The only disadvantage is that it is quite uncomfortable to manually transfer and execute the application.
To make it better I wrote a simple script which does scp transfer and then run gdbserver over ssh and I call this script as External tool in Eclipse. It works, I can connect to gdbserver with the eclipse debugger, but during debugging eclipse still switches to the console with gdb output and I can not see the standard output of the application, which is in the console of the External tool. Moreover in this console the printf output is not shown immediately but when the application ends.
The third thing I have tried is to use RSE and Remote debug application - I have created new connection in RSE perspective - I can browse the files there and launch terminals and shells and run the commands in the shell. After creating the Remote debug setup end running it the executable is successfully copied to the target, however nothing is executed there (nor the gdbserver nor the commands specified to run before application). I have tried the same with another remote target (not embedded but PC with ubuntu) and the problem is the same.
Could please somebody give me some advice how to automate remote debugging?
My host computer runs Ubuntu 11.10 and Eclipse Indigo, I have tried it also in Windows XP but with similar results.
Powered by FUDForum
. Page generated in 0.01531 seconds